• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Help with external animation.

Anyway to animate an external sprite?

I need to animate this:
draw_sprite_ext(spr_Sword_Wood, 0,x,y,image_xscale,image_yscale,b_angle,image_blend,image_alpha);

I am not going to use a separate object.
 

rIKmAN

Member
Anyway to animate an external sprite?

I need to animate this:
draw_sprite_ext(spr_Sword_Wood, 0,x,y,image_xscale,image_yscale,b_angle,image_blend,image_alpha);

I am not going to use a separate object.
I'm really not sure what the question is, but if you mean the sprite has multiple frames but it isn't animating then you need to change the 0 in your function to image_index and make sure that the image_speed is set to a value bigger than 0.

Using 0 means it will only ever draw frame 0, rather than the frame designated by the current value of image_index.
 
I'm really not sure what the question is, but if you mean the sprite has multiple frames but it isn't animating then you need to change the 0 in your function to image_index and make sure that the image_speed is set to a value bigger than 0.

Using 0 means it will only ever draw frame 0, rather than the frame designated by the current value of image_index.
someone else already helped me off-site. thanks for trying though
 
Top