View Single Post
Old
Beans
Member
 
Beans's Avatar
 
Status: Offline
Posts: 41
Join Date: May 2012
Default 12-11-2012, 06:43 PM

Heres one thing you can do.
Add a variable for each plate.
Make it something like "plate1down"
or something like that. Rename all your objects plate1, plate2, etc.
Then, make a while the world is running loop (right click on when the world starts and select the option to change it into this format) and create a new method called platebreak or something. Then, make a infinite loop that checks if variable plate1down or something is on, plate2down, etc. Then, make it so if it is down, it cannot pop up using your own method for doing this, like 50% chance this plate pops up, unless it is plate1 and plate1down is activated. Make plate1down activated when the user clicks the mouse on it. There you go, that should work for that one.
For the clock, do the same thing. When the clock reaches 0, add a variable called timerstop or whatever. Add a number variable and make it add 1 for every time you click on a plate. Then, make it print that variable at the end of the game. See my zombie game for example for a timer counting up.


Check out my Weeping Angels and Zombie game!
Dont forget to vote if I should make more Doctor Who stuff and Doctor Who game!

Last edited by Beans; 12-11-2012 at 06:46 PM.
   
Reply With Quote