Axl Trauts
Member
Hi, I am really confused here. I made my player object fire a missile that "goes to the sky", that is, disappears and when it does, it creates rain. Like a rain missile
Anyways, the thing is that the rain sprite does not animates at all, it has 4 subimages.
This is what I did on the Missile object :
Create event
Step Event
Draw Event
Anyways, the thing is that the rain sprite does not animates at all, it has 4 subimages.
This is what I did on the Missile object :
Create event
Code:
image_alpha=1;
misil=1;
Code:
// The Missile is fired and moves a bit until it disappears
if(image_alpha != 0)
{ image_alpha = image_alpha - 0.05;
move_towards_point(x,y-50,5);
}
else
{ speed = 0;
misil=0; // Used to draw the rain
}
Code:
draw_self();
image_speed=1; // does nothing :(
if misil==0
{ draw_sprite(spr_lluvia,image_index,x,y); // no animation :(
}