animpos problem
Posted: Wed Jan 19, 2011 7:14 pm
hi there!
i have this routine in my key down (repeat) event:
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?
Thanks!
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?
Thanks!