Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Chapter 6 Exercise 6 Boat Obstacle Course
Old
TaraLaukart
Guest
 
Status:
Posts: n/a
Default Chapter 6 Exercise 6 Boat Obstacle Course - 02-24-2010, 08:15 PM

I got everything with the obstacles but I don't know how to make the game over when either all of the torus objects or all of the obstacles have sunk.

Please and Thank you!
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 03-04-2010, 01:42 AM

I've done this exercise! Make a variable that increments every time it hits a ring. Then use a "While the world is running" event to check to see if that variable equals the total number of rings. If it does, do whatever method to end the game.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-04-2010, 07:03 AM

Quote:
Originally Posted by TaraLaukart View Post
I got everything with the obstacles but I don't know how to make the game over when either all of the torus objects or all of the obstacles have sunk.

Please and Thank you!
I was going to say just use variables. Make it when one object sinks, a variable that detects that changes to one. Do that for all of them and make an event thats shows if all the number = 20 or however many objects you have, do some game over method


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.