Page 1 of 1

Problem with animations

PostPosted: Sat Jan 23, 2010 5:17 pm
by ged37
Hi. I have a problem with the Game Editor animation system: I try to create an object with an animation, but the animation doesn't starts always from the frame 0 (sometimes starts from 1). What can I do to solve the problem? I also tried to change the "animpos" variable manually, but it doesn't work... Thanks in advance for answers

Re: Problem with animations

PostPosted: Sat Jan 23, 2010 6:49 pm
by DST
I got this one!

When you issue the command to start an animation, it moves it forward, from the current position. But when you use CreateActor, the actor is created and the animation is incremented in the same frame, resulting in a starting frame of 1 instead of 0.

Simple fix: start on the last frame. If you have a four-frame animation, and you set animpos to 3 on Object>CreateActor, then it will start on 0.