How do I go about changing the animation speed of an entity? I've looked all in my animate() functions and I can't figure out why the animation is so fast. The animation goes so fast it literally looks like a blur on the screen. Whether running it fullscreen or windowed, it still does the same thing.
this is what the walk animation looks like:
Code:
var wait_start=0;
var wait_end=1;
var player_walk_frames[2]= 22,42;
function animate_walk()
{
while(1)
{
if((player.frame > player_walk_frames[wait_end]) || (player.frame < player_walk_frames[wait_start]))
{
player.frame = player_walk_frames[wait_start];
}
player.frame += 0.7 * time;
wait(1);
}
}
I've tried adjusting the animation time and player speed, but nothing seems to work. Here's a screenshot of some extra F11 info on the screen when I run the program in case this helps:
