Saving the fact that an actor was destroyed?

Hello fellow GameSalad devs, I have a quick question.
I set up a room that has a green button, once you press the green button, it destroys itself and spawns
a blue button near it. This works perfect, but when I leave the room and come back, it resets
itself showing a green button, and no blue button to be found.
I tried using variables to set this, so if the variable was true, it would delete the green button and spawn
the blue one, but this happens quickly AFTER you get into the room. This means that you get a glimpse of
the green button before it disappears, and then you see the blue button appear after a split of a second.
How do I make it so that the blue button never disappears after it is spawned, and the green button never comes back?
Thank you.
I set up a room that has a green button, once you press the green button, it destroys itself and spawns
a blue button near it. This works perfect, but when I leave the room and come back, it resets
itself showing a green button, and no blue button to be found.
I tried using variables to set this, so if the variable was true, it would delete the green button and spawn
the blue one, but this happens quickly AFTER you get into the room. This means that you get a glimpse of
the green button before it disappears, and then you see the blue button appear after a split of a second.
How do I make it so that the blue button never disappears after it is spawned, and the green button never comes back?
Thank you.
Comments
So you need to save that attribute that says when it's true to destroy the button and spawn the other one, and then in the other scene, make sure the load attribute is at the very top of your scene loading.
@};- @};- @};-
@};- @};- @};-
@};- @};- @};-
one button … just changeAttributes: self.Image and self.Position.X (or Y)
… if the button size changes with image … you just add the behaviors for that
no destroy; no spawn
demo: http://www.mediafire.com/?qvoa8669wae6z9d
@};- MH