Question regarding simple animators and model states.

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
jinxtengu
Posts: 122
Joined: Wed Oct 14, 2009 2:05 pm
Contact:

Question regarding simple animators and model states.

Post by jinxtengu »

Hi, I'm working on a game in Z game editor and I've run into a small problem which I'm not sure how to solve.

I have a model that loads a model state when it is spawned. On the "On render" it runs a simple animator. Repeat count is set to 0.
The animation works fine, the first time the model is spawned, however when its spawned a second time, the animation starts off, already having finished, ie in it's end position.

I'm sure that this is something obvious, but I haven't been able to work out how to reset a simple animator to it's starting state.
Any ideas? :o
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Question regarding simple animators and model states.

Post by VilleK »

Hi,

Did you try the StartAnimator component? http://www.zgameeditor.org/index.php/Co ... rtAnimator
jinxtengu
Posts: 122
Joined: Wed Oct 14, 2009 2:05 pm
Contact:

Re: Question regarding simple animators and model states.

Post by jinxtengu »

I hadn't noticed that component until now. I just implemented it (in on start of the model state) and yes it works in the situation I described.
Thank you for answering my question. :mrgreen:
Post Reply