How to create double click button?

Hi, in my game for iPhone i want to have a actor.
When the actor is touched, it will spawn another actor in upper right corner that says remove.
When you click the remove button, it will remove both main actor and itself, and then reset all attributes to 0.
But, i also want to have that when the main actor is pressed once, the remove button pops up.
But when the main actor is pressed while the remove button is in the screen, it will only remove the "remove" button, and reset all attributes to 0.
I have tried some ways to do this.. But i just cannot come up with a good solution.
When the actor is touched, it will spawn another actor in upper right corner that says remove.
When you click the remove button, it will remove both main actor and itself, and then reset all attributes to 0.
But, i also want to have that when the main actor is pressed once, the remove button pops up.
But when the main actor is pressed while the remove button is in the screen, it will only remove the "remove" button, and reset all attributes to 0.
I have tried some ways to do this.. But i just cannot come up with a good solution.
Comments
• Create a boolean scene attribute called something like "Remove Button Visible"
• Create a rule on your main actor that says:
If Actor is touched
• Create a rule within that rule that says
If "Remove Button Visible" = false
Change Attribute "Remove Button Visible" to "true"
Otherwise
Change Attribute "Remove Button Visible" to "false"
That *should* work. It might possibly put it in a loop of setting it to true and false, in which case create another rule alongside the second one (within the first one) that changes it to false if the remove button visible attribute is already true.
Hope that helps!
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thx for help mate
Cheers
I found out that the simplest way to do it is the way that @FryingBaconStudios mentioned, this also solved the problem with the looping, tho i had to create 2 index attributes.
Thx for help