PDA

View Full Version : Lab 3


Sharris
04-13-2014, 07:44 PM
On this project we had to make a ring catching game using a cone. The user has to catch 10 rings and then the game is over. I have it to where the user can catch the rings, but I am stuck on making the program stop after 10 rings.

xCROv
04-14-2014, 02:53 AM
On this project we had to make a ring catching game using a cone. The user has to catch 10 rings and then the game is over. I have it to where the user can catch the rings, but I am stuck on making the program stop after 10 rings.

Try using a world variable that increments every time that something happens. If you have a way to know when a ring is "caught" then you can make a simple IF statement that when a variable is == to 10 the game is over.

Check out the example I made below. I'm sure if you already got the hard part of catching rings done you will laugh at yourself for how easy the other parts are. :P