Alice Community  

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

Reply
 
Thread Tools Display Modes
Lab 3
Old
Sharris
Member
 
Status: Offline
Posts: 15
Join Date: Jan 2014
Default Lab 3 - 04-13-2014, 06: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.
   
Reply With Quote
Old
xCROv
Guest
 
Status:
Posts: n/a
Default 04-14-2014, 01:53 AM

Quote:
Originally Posted by Sharris View Post
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
Attached Files
File Type: a2w Bunny Jump.a2w (315.4 KB, 5 views)

Last edited by xCROv; 04-14-2014 at 02:01 AM.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.