When I click one of the button. A big screen shows up with stats and so on. There is a close button in this screen.
When I click on the close button It hides the screen but also calls a label with several variables so that it gets reset.
But here is the problem. When I click on the close button it also changes the main game.
The below image should have been the same as the first image but it is not.
I have detected the problem and it is the close button that is causing this. Without calling the label the close button doesn't affect the game. I removed the return statement in the label and still the game is affected. The calling of the label itself is causing the game to be affected.
Code: Select all
imagebutton auto "close_%s" xpos 1125 ypos 8 action [Hide("charactersbutton"), SetVariable("characters_imagebutton_list_boolean",True), Show("statusbuttons"), Call("close_label")]
Code: Select all
label close_label:
$ steve_character_imagebutton = False
$ diana_character_imagebutton = False
$ stacy_character_imagebutton = False
$ robin_character_imagebutton = False
$ brad_character_imagebutton = False
return