Jump to content


john_light

Member Since 10 Jul 2011
Offline Last Active Nov 24 2011 01:06 AM

Posts I've Made

In Topic: Externally Loading Files

13 October 2011 - 01:43 PM

thanks for all the reply guy's i figure out how to use sprites externally using the new feature in Gm8 the gmspr.
Here's my code at the create event that fit's perfectly.

john_stand=sprite_add_sprite("spr_john_stand.gmspr")
john_walk=sprite_add_sprite("spr_john_walk.gmspr")
john_punch=sprite_add_sprite("spr_john_punch.gmspr")


floorjump=floor(sprite_height/2)+15 ;
image_speed= 0.3;
gravity=1;
standsprite=john_stand ;
walksprite= john_walk;
swordsprite=john_punch;

But i wonder if i can use the sprite_replace_sprite(ind,fname) in my code to be more efficient in my memmory. how to i use index to change the ind in the sprite_replace_sprite.

In Topic: How to run my game fast

12 October 2011 - 10:07 AM

Replying to 2:
Maybe you could devide the background in some smaller parts and just show the parts visible for the player?

I've already done that and use each part as a tile maybe to save memmory. can you give me the code to load back ground externall and the one that you are saying thnx.

In Topic: Deep Magic. 3000+ Downloads!

28 September 2011 - 09:42 AM

broken link.

In Topic: HELP! health & ammo follow the view

26 September 2011 - 08:58 AM

So you want it to follow your character but not be on top...? Perhaps you are referring to:

draw_healthbar(view_xview[0]+10,view_yview[0]+10,view_xview[0]+210,view_yview[0]+20,a,b,m,m,d,s,s)

yes. something like that. but the draw_healthbar is not on the script. it has arguments and i dont know how to change it on the script. and implement on the draw event.
hope you find the answer.

In Topic: HELP! health & ammo follow the view

25 September 2011 - 01:04 PM

Could you perhaps mean anything like this? It looks to me like you are using a very complex code for a very simple task.

thanks for this. but i don't want the health bar on top of my character. here's the link to know more what im saying. the healthbar and ammo stays on its place(i adjust the room with).
http://madebyluke.com/gamedesign/tutorials/tut_draw_percentage_bar.html