animpos problem

Non-platform specific questions.

animpos problem

Postby sonicfire » Wed Jan 19, 2011 7:14 pm

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!
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: animpos problem

Postby schnellboot » Wed Jan 19, 2011 7:46 pm

if you have 5 nframes you have animpos 0 to 4
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest