Page 1 of 1

Question regarding simple animators and model states.

Posted: Wed Jul 05, 2023 5:52 am
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

Re: Question regarding simple animators and model states.

Posted: Wed Jul 05, 2023 7:36 am
by VilleK
Hi,

Did you try the StartAnimator component? http://www.zgameeditor.org/index.php/Co ... rtAnimator

Re: Question regarding simple animators and model states.

Posted: Wed Jul 05, 2023 10:59 am
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: