Im trying to figure out how to do a simple popup menu. I see this older post - but it is no longer available.
I can see 2 ways to do this.
First, when my actor is touched, spawn the two buttons off to the side. The challenges I see are if I click on one of the two buttons, how does the button not touched get destroyed (think one button is delete the main actor, the other is upgrade - tower defense type game). Also if one of the buttons overlap with the main actor, the touch applies to all actors.
the other way would be one graphic that has both buttons and i just calculator based on position and size which button was pressed..then i could destroy the single button actor regardless which button was pressed.
Any good ways people have used to solve this?