Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Creating Boundries & effects
Old
sabrewulf
Guest
 
Status:
Posts: n/a
Default Creating Boundries & effects - 04-24-2009, 05:17 PM

I am working on a program and i would like to be able to let the user control a vehicle on the program. The issue that i am having is that i would like to restrict the user to stay within a certain circle. This is what i am unsure on how to do.
Does anyone know how to go about creating random movements for a vehicle? I think this could be accomplished with having a variable that is randomly selected(forward, reverse, left, right, etc) then random choose a number for the distance to travel.
And going along with the second part, how would i write(if its even possible) that if the user controlling the car, collides with the other car(computer controlled), then do a method(crash sound, fire, etc)?

Any help would be much appriciated.
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.