Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, Akow, monk12), 1,413 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with Animation / Fehler in Animation #254772
03/05/09 12:45
03/05/09 12:45
Joined: Mar 2009
Posts: 7
K
Kronos Offline OP
Newbie
Kronos  Offline OP
Newbie
K

Joined: Mar 2009
Posts: 7
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

Re: Problem with Animation / Fehler in Animation [Re: Kronos] #254862
03/05/09 23:53
03/05/09 23:53
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Welcome to the forum smile

Did you use time_step in the calculation.


Ottawa smile

Re: Problem with Animation / Fehler in Animation [Re: Ottawa] #254899
03/06/09 08:58
03/06/09 08:58
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
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.

Last edited by EvilSOB; 03/06/09 08:59.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Problem with Animation / Fehler in Animation [Re: EvilSOB] #254987
03/06/09 21:05
03/06/09 21:05
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
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.

Re: Problem with Animation / Fehler in Animation [Re: EvilSOB] #255034
03/07/09 06:54
03/07/09 06:54
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
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)

Re: Problem with Animation / Fehler in Animation [Re: Kronos] #255044
03/07/09 09:03
03/07/09 09:03
Joined: Mar 2009
Posts: 7
K
Kronos Offline OP
Newbie
Kronos  Offline OP
Newbie
K

Joined: Mar 2009
Posts: 7

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


Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1