I am making a platform game for ANDROID with differents frames (that are worlds). The player can go trought the different frames and get differents objects like "coins". But I have a problem. When I start the game, the player is in frame 1. The player pick up a coin and it is destroyed. Now the player go trought a door to another world (Frame 2) and when the player return trought that door to the frame 1 again, the coin is there again. I tought that the function of a "Global object" was used for the thing i want to do, but it doesn´t work. So, is there a way to destroy an object forever and do not reapear if I go to the frame again?
Thank you so much!