Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
stuck on lab 3
Old
tthornton
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2015
Default stuck on lab 3 - 05-01-2015, 05:34 AM

I cannot figure out how to do the counter for lab 3 ring catch game. Somebody please help.

Last edited by tthornton; 05-01-2015 at 12:47 PM.
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 05-01-2015, 08:54 AM

I'm guessing that you studied something called collision detection in that chapter, so the simple solution would be to add one to your counter if the ring is within a certain distance of the cone when it lands. I guess the distance would be up to you, as well as the speed of the drop.
   
Reply With Quote
updated
Old
tthornton
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2015
Default updated - 05-01-2015, 12:45 PM

so I updated the ring's proximity to the cone but how do I get the actual 3D-Text to change from 1 to 10?
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 408
Join Date: Oct 2013
Location: Northern Virginia
Default 05-01-2015, 06:08 PM

Here is an example of adding numbers, depending on what kind you are using it will give decimal and integer values.
Attached Files
File Type: a2w Example.a2w (171.0 KB, 6 views)


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 05-01-2015, 07:59 PM

The answer involves converting the counter to a text string because that's what goes into a 3DText. There is a world function called "(what) as a sting" that you can drag in, and then replace (what) with the name of your counter.
   
Reply With Quote
counter
Old
tthornton
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2015
Default counter - 05-01-2015, 10:45 PM

Thank you for your advice. I think I have it now.
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.