2D Toolkit Forum

2D Toolkit => Support => Topic started by: Drips on February 18, 2013, 07:15:20 pm

Title: tk2dButton change sprite when clicked
Post by: Drips on February 18, 2013, 07:15:20 pm
Ive had this issue a few times. I will create a sprite, then add the tk2dButton component. When the button is clicked, the sprite will change to another in the collection.

In the past ive solved this issue by creating a sprite collection with a single sprite in it - obviously not the greatest. The button down / up sprites are set to default "button_down" and "button_up".

halp :p
Title: Re: tk2dButton change sprite when clicked
Post by: unikronsoftware on February 18, 2013, 11:21:34 pm
Clear the buttonDownSprite and buttonUpSprite fields - that will make it not change any sprites.