Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I stop a character from walking through objects
Old
mtayborn
Junior Member
 
Status: Offline
Posts: 6
Join Date: Oct 2011
Default How do I stop a character from walking through objects - 10-23-2011, 10:55 PM

How can I stop my character from walking through an object? If someone could answer this soon it would really be appreciated. I have to complete this assignment for the morning. I am figuring out a lot of this on my own, but some I do need help with. Thank you.
   
Reply With Quote
Not sure on this
Old
Gameboy
Junior Member
 
Status: Offline
Posts: 1
Join Date: Oct 2011
Default Not sure on this - 10-24-2011, 12:29 AM

Im still new to alice but the best I can tell you is to use the Distance to Function. I attached an example. A bunny moving toward a sign. The Bunny is set to move to the sign while the distance is greater than .5 meters. You do this by using Bunny Move forward. Then choose the functions tab for the bunny and click Bunny Distance to and drag over the distance in the code for Bunny move forward (Function here) then click the drop down arrow next to the Function and choose math distance to -(minus) and choose the distance to the object.

Don't know if this will help but let me know. Just replied because I've been in your situation and it sucks! Good luck.
Attached Files
File Type: a2w bunny stop.a2w (574.8 KB, 5 views)
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.