Okay, I’m making a simple game where the player has to drag a ball across the stage to a goal without hitting obstacles. There are three levels, each with additional obstacles put on the stage. If the player hits an object they use up one life, when they use up three lives they lose.
Now for my trouble. My problem comes at the losing screen. I’ve got the game to take them to a losing screen, but I cant seem to remove the obstacles from the stage without any errors. I get error messages because some of the obstacles are not yet created.
For example if someone dies on the first level, I have to make one object hidden on the lose screen. On the second level I have to make three different obstacles hidden. On the third level there are four obstacles I have to make hidden on the lose screen.
My problem lies in the fact that if the player dies on the first or second level, the objects in the levels after have not yet been created. Therefore, I cannot access the visibility property of the obstacles.
I’m sorry if I’m not explaining it very well, but I would greatly appreciate any help.
Thanks
eric