When I click on for example "Level 2" button I want to set my textObject to 300 and when I click on "Level 15" button the textObject has to be set to 150 for example. Its quite easy, no problem - BUT what if I create the RESTART button? When I click it I want those textsObjects to be set to its default values.

So when clicked on restart in the level 2 text has to be 300 again (because during the level it will be falling to 0)

How to do this? How to restart a specific global variable in a specific level?trance2013-11-12 09:52:01

I think you can make it using the "on start of layout" and setting the value to the corrrent value for that layout.If you reset the game on that layout the value will reset to the value specified in the "on start of layout".