Alice Community  

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

Reply
 
Thread Tools Display Modes
Travelling a Road
Old
shodai
Member
 
Status: Offline
Posts: 27
Join Date: Nov 2010
Default Travelling a Road - 03-16-2012, 07:14 PM

I have been working on something that would seem to be very simple but I am obviously missing something. Does anyone know of a way to make a character walk down a road (on of the object classes) so that if it starts to walk off of the road it will stop and find the road again.
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 03-17-2012, 08:36 AM

The way I would do it is set up two reference points at the start of the road, and use the "in front of" and "to the left of" functions to make sure he stayed on the road, and using the "move toward" to get him to find the road again. Start with that.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.