T
Turrican
Guest
Hi, this is my first post, I hope I have not made mistakes with the regulation of the forum.
I made an animation that makes the character start to walk (from a stand position) and walk. I want that animation start from the frame 0 for the first animation, than loop from the frame n. 18. (0-18 is the start walk, 18-end is the walking loop). So I made this:
And it works except for the fact that if i stop the movement (WalkU) and restart, the walking animation start from the last frame of the previous walking, how can I set that the animation start from frame 0?
Thanks
I made an animation that makes the character start to walk (from a stand position) and walk. I want that animation start from the frame 0 for the first animation, than loop from the frame n. 18. (0-18 is the start walk, 18-end is the walking loop). So I made this:
Code:
//Animation
if (vsp == 0)
{
sprite_index = Spr_Breathe;
}
else
{
sprite_index = Spr_WalkU;
if (image_index==image_number -1)
{
image_index = 18;
}
}
Thanks