Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   SetAniTime(file.gani,time,params); (https://forums.graalonline.com/forums/showthread.php?t=134257151)

DustyPorViva 12-01-2009 10:24 PM

SetAniTime(file.gani,time,params);
 
SetAniTime(file.gani,time,params);
SetCharAniTime(file.gani,time,params);

Sets an animation starting at the time given. I know there is a way to set the step of the animation via setani(ani[frame],params), but as far as I know there is no way to set it at a specific time. So for a gani that has frames of different time intervals, it's pretty hard(or impossible), to find the frame that you desire, AND start it where. For example, if I have a gani that has a 1 second 1st frame, and a .5 second 2nd frame, how can I make it start in the middle of frame one(half a second in)?

SetAniTime(dance.gani,.5,null);

Codein 12-01-2009 10:27 PM

Good idea.

Also, what are you trying to do, out of curiosity?

DustyPorViva 12-01-2009 10:56 PM

I have a bomb animation. Not all frames are 0.05 seconds, and it's 3 seconds long. I want to be able to set the animation dependent on how much time before it explodes rather than by frame(since some frames are .15 seconds long, some .1 and some .05), as the bomb will be able to be picked up, thrown and such.

Codein 12-01-2009 11:37 PM

Ah.


All times are GMT +2. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.