Sign in to follow this  
san40511

Active state for button

Recommended Posts

Hello guys. I have a question. How I can add active state to button? For example we have the button and I'm click to this button -  I need to change current sprite to another(active state). After repeat click I need to change sprite to normal state. Thanks for help.   

Share this post


Link to post
Share on other sites

You can set the "Up" state to have the same graphic as the down state since ->

 

'Up' - when the Pointer that was pressed down on the Button is released again

 

 

And when you want the original frame you could do 

button.frame = 0;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.