So I have made a scene behavior for winning and losing the game and have attached it to the 3 levels. What I have done is that if appliance 1 = 75 or more, and appliance 2 = 75% or more, and etc etc, then it would go to a new scene which would let you know that you have won the level.
For the lose screen I have made it that if appliance 1 = 0, or appliance 2 = 0, etc etc, than it would go to another new screen which will be the lose screen. Telling you that you need to redo the level. Each level has a different losing screen that has each of the different appliances on it. James has made these.
In the scene screen there are regions just infront of each of the doors and once the character is in them the image of the door will change to an open door.
As you can see if the code for win screen there is an attribute called Level 1 completed and Level 2 completed. They originally start as false so if you want to enter the next room you have to complete the previous room to be able to go into the next one.
No comments:
Post a Comment