Hi,
Im trying too make my player move foward when i press space_bar until my dive_roll animation are done.
This is my function to run the animation...
/////////////////////////////////////////////////////
function animate_startup()
{
var anim_percentage = 0;
while (1)
{
while (!key_space) {wait (1);}
while (anim_percentage < 100)
{
//player.x += 10 *time_step;
anim_percentage += 10 * time_step;
ent_animate(player, "dive", anim_percentage,NULL);
wait (1);
}
anim_percentage = 0;
while (key_space) {wait (1);}
wait (1);
}
}
/////////////////////////////////////////////////
I tried to add this line player.x += 10 *time_step.. like u can see at the commented line... but that not work correctly... anyone can help me plz