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