The Daily Click ::. Forums ::. Klik Coding Help ::. How to finish an animation manually
 

Post Reply  Post Oekaki 
 

Posted By Message

DerbiaN



Registered
  27/03/2003
Points
  512
19th July, 2004 at 11:55:18 -

Does anybody know if there's a way to finish a long animation of an active object instantly, instead of waiting for it to finish. The reason why it would be useful is that after the animation is finished, it is released from being redrawn and will be much faster. The problem is that if your object has say 50 animation frames, it'll take some time to finish, even if the anim speed is 100.

The best way I have found so far is to change its animation frame to the last frame and then use "restore animation frame" to get the animation moving again. This way it works almost perfectly, finishing 1 loop after triggered, but does still not finish on the same loop, which means the other events will have to be started one loop later and there will be a one-loop-long but still noticeable flash of the last anim frame.

 
n/a

defenestrator

Old

Registered
  12/07/2003
Points
  724
19th July, 2004 at 12:10:32 -

I still have no idea when this would be useful to do, but I guess you could try a fastloop and just force the object's animation frame to its frame+1 until it's done.

Or, I suppose you could have the object start invisible, then become visible when its animation is done. Depends on what you're looking for, I guess.

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
19th July, 2004 at 20:46:13 -

Couldn't you just change the animation sequence instead?

 
http://www.klik-me.com

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
21st July, 2004 at 02:31:23 -

I'm with JonWog, Wtf Mate?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click