Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SupSuper on Sun 22/04/2007 16:03:17

Title: Checking if a button animation has finished (SOLVED)
Post by: SupSuper on Sun 22/04/2007 16:03:17
When using Button.Animate() to run an animation once, how do I check if the animation has finished?
Title: Re: Checking if a button animation has finished
Post by: Khris on Sun 22/04/2007 18:14:50
Button.Graphic should return a sprite of the animation.

So if you use two identical looking sprites, one as the standard button image, one in the animation's view, Button.NormalGraphic != Button.Graphic during the animation, == otherwise.