Page 1 of 1

animpos problem

PostPosted: Wed Jan 19, 2011 7:14 pm
by sonicfire
hi there!

i have this routine in my key down (repeat) event:

Code: Select all
if (animpos == nframes)
{
    animpos = 0;
} else {
    animpos++;
}


However, when i press the key and hold it my actor only rotates once? it should rotate over and over?
this may be obvious but i´m too blind to see the problem here. What am i missing? :oops:

Thanks!

Re: animpos problem

PostPosted: Wed Jan 19, 2011 7:46 pm
by schnellboot
if you have 5 nframes you have animpos 0 to 4