Buttons not retaining images after scene change

Hi,

In my app I have the option to change the time it can be played for; infinite, 2, 5 or 10 minutes. Whenever the user taps on a button, that button changes to green.Also, infinite is set as default. This part is no problem :) However, this is what happens next.

When the user goes back to the main menu and then goes back into the options screen, the buttons have changed and now show the default setting again, in this instance, infinite is the highlighted option. I've created a few temporary actors to display the values and, by all accounts, it should work, but it doesn't.

I set it up by having the buttons call variables such as 2active and setting that to true or false. If it's true, it turns to green, if it's false, it reverts to default.

Any help/assistance anyone can give would be great.

Thanks in advance!

Best Answer

Answers

Sign In or Register to comment.