Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   racing game? (http://www.alice.org/community/showthread.php?t=6488)

annaandcat 05-07-2011 01:40 PM

racing game?
 
I'm trying to create a racing game in Alice. I have the streets and the car but I can't find a way to make the car stop when it goes off the road. The only way I can think of is have "While car is within 5 meters of road, road1, road2, road3, turn, road 4.... Do car move forward...." But even that wont work because it measures 5 meters from the center of the road. So I would have to put in a bunch of invisible objects on the road and say "while car is within 5 meters of object, object2, object3....." that would crash the computer though wouldn't it? Is there any other way to do this?

debussybunny563 05-07-2011 06:35 PM

1 Attachment(s)
[SIZE="2"]Instead of using the 'within so-and-so meters of object' function, use the 'distance to the left/right/etc. of object' function.[/SIZE]


All times are GMT -5. The time now is 07:54 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.