PDA

View Full Version : Method for measuring a "hit"


Slidetackle
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.

DickBaldwin
02-25-2008, 09:38 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.

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