shouldn't this work?
Posted: Sat Jan 23, 2010 6:45 pm
Okay My variables are: speed, anim_s, and the original real_fps. What I'm trying to do is... if you have a higher number, for example 6, the animpos will add faster, not slower. For example heres the code
But it just freezes the animpos O.o
- 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