Problem with animations

Non-platform specific questions.

Problem with animations

Postby ged37 » Sat Jan 23, 2010 5:17 pm

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
ged37
 
Posts: 1
Joined: Sat Jan 23, 2010 5:08 pm
Score: 0 Give a positive score

Re: Problem with animations

Postby DST » Sat Jan 23, 2010 6:49 pm

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron