Alice Community  

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

Thread Tools Display Modes
Posts: n/a
Default 06-13-2006, 07:34 PM

The textbook also has a great example, Bumper Cars, from Chpt 7 Exercises. However in lieu of using the .distanceTo() function the cars can be kept from driving through each other using the .iscloseTo() function.

And yes it does take a few If-statements to accomplish, but isn't that what coding is all about? You could write a world-level method for the If-statements, pass your Object as a paramter, and return a boolean.

Last edited by lanceA; 06-13-2006 at 07:45 PM.
Reply With Quote
Senior Member
madden's Avatar
Status: Offline
Posts: 322
Join Date: Mar 2006
Location: My own little world 0.0
Default 03-24-2007, 12:21 AM

Originally Posted by grandstream View Post
thanks again, will try to place invisible objects along the walls of maze.
lets make a tower
Reply With Quote

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.