Alice Community  

Go Back   Alice Community > Educators > Teaching with Alice

Reply
 
Thread Tools Display Modes
Method for measuring a "hit"
Old
Slidetackle
Guest
 
Status:
Posts: n/a
Default Method for measuring a "hit" - 02-25-2008, 08:44 AM

The class I am teaching is trying to create games similar to the carnival milk bottle game. The issue we are having is getting the world to recognize when the "ball" hits the "can". Can anyone provide us w/ some help? I would be happy to provide one of my student's worlds for you to play with.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 02-25-2008, 09:38 AM

Quote:
Originally Posted by Slidetackle View Post
The class I am teaching is trying to create games similar to the carnival milk bottle game. The issue we are having is getting the world to recognize when the "ball" hits the "can". Can anyone provide us w/ some help? I would be happy to provide one of my student's worlds for you to play with.
There are several "proximity" functions that can be used to determine things like the distance from the center of the ball to the center of a can. There is also a "while" event that can be used in conjunction with the proximity functions, but I haven't found it to be very reliable.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.