Hi guys, I've decided to include optional mini-games in a project I'm building and have run into a problem with one of them.
In the game below, the player presses the red button and the chests start moving at random. When the chest desired touches the green square in the center the player
presses the button again to stop the chests. The game should then display either "Obtained [??]" for whatever was in the chest, or "Sorry, no prize" if the switch is hit without
a chest being on the green square. The moving and stopping part works fine, its the rest of it I'm having trouble with because I'm not sure how I could actually get the game
to recognize whether or not a chest is on the square (and if so what item to give)
Any ideas?


In the game below, the player presses the red button and the chests start moving at random. When the chest desired touches the green square in the center the player
presses the button again to stop the chests. The game should then display either "Obtained [??]" for whatever was in the chest, or "Sorry, no prize" if the switch is hit without
a chest being on the green square. The moving and stopping part works fine, its the rest of it I'm having trouble with because I'm not sure how I could actually get the game
to recognize whether or not a chest is on the square (and if so what item to give)
Any ideas?

