- Code: Select all
void WalkAnim(int anim_s, int d)
{
speed = round(real_fps) - anim_s;
if (d == up)
{
temp_up++;
if (t1 == 0)
{
ChangeAnimation("Event Actor", "walking_up", STOPPED);
t1 = 1;
}
if (temp_up == speed)
{
animpos++;
temp_up = 0;
}
if (animpos == 4)
{
animpos = 0;
temp_up = 0;
}
}
}
But it just freezes the animpos O.o