2D Toolkit Forum
2D Toolkit => Support => Topic started by: johndonovan on March 06, 2012, 05:18:54 pm
-
Hi
Anyone know how to add an animated sprite to a button?
Any help would be greatly appreciated.
-
How do you need this to work?
Do you want an animation playing all the time, and then to swap between different animations?
-
Hi
Sorry about the late clarification.
Basically I just want to put an animated particle sprite - a candle flame on a candle that is part of a buttons image. It would simply loop continuously, no swapping from one animation to another - just a single animation.
I've attached the button image so you can get a better idea of what I'm after.
Any help would be greatly appreciated.
-
If you can separate the candle out of the image, all you'll need to do is place an animated sprite as a child of the button, and position it correctly. Otherwise, you'll need two sets of animations - one pressed and one up to represent the normal state - and syncing the animations is going to be a bit of a pain, but doable.
-
Ok, thanks, that should work. I appreciate the help.