Problem with Animation / Fehler in Animation

Posted By: Kronos

Problem with Animation / Fehler in Animation - 03/05/09 12:45

Hi everybody,

EN: I have a small animation problem that I am not able to solve. The following file contains a small windmill whose wings shall rotate in an endless loop. However when one turn is ending and the next is to start the animation is stalling. Can anybody offer a hint what is wrong here?
Thanks for your help.

DE: Ich habe ein kleines Problem mit einer Animation, das ich nicht beheben kann. In der folgenden Datei ist eine Windmühle, deren Flügel sich drehen sollen. Allerdings hakt die Animation, wenn die Animation ein Mal durch ist und wieder von vorne beginnt. Kann mir vielleicht jemand auf die Sprünge helfen, was falsch ist?
Vielen Dank!

File: Windmill
Posted By: Ottawa

Re: Problem with Animation / Fehler in Animation - 03/05/09 23:53

Hi!

Welcome to the forum smile

Did you use time_step in the calculation.


Ottawa smile
Posted By: EvilSOB

Re: Problem with Animation / Fehler in Animation - 03/06/09 08:58

If you are using ent_animate make sure of the following.
when ent_animate(entity, "type", cycle(percent,0,100), ANIM_CYCLE)
Be sure "type" doesnt contain any frame NUMBERS. (ie "walk", not "walk5")
Be sure 'percent' is a VAR type, and use the cycle function as shown.
Be sure ANIM_CYCLE is in capital letters.
Hope this helps.
Posted By: JazzDude

Re: Problem with Animation / Fehler in Animation - 03/06/09 21:05

If you're using A6 just rename the frames "stand" and don't give it an action.

I don't know if that works with A7.
Posted By: Pappenheimer

Re: Problem with Animation / Fehler in Animation - 03/07/09 06:54

To play through all frames regardless of the names of the frames, don't write the name of the frame at all. Like this:

ent_animate(entity, "", cycle(percent,0,100), ANIM_CYCLE)
Posted By: Kronos

Re: Problem with Animation / Fehler in Animation - 03/07/09 09:03


Hi!

Many,many thanks to all of you! Problem solved! I thought the "animate" function of MED with the "Interpolate" option enabled would do the same as the script function, but obviously it doesn't.

With the script it works. Thanks again!

Stefan
© 2023 lite-C Forums