Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How do I stop a character from walking through objects (http://www.alice.org/community/showthread.php?t=7447)

mtayborn 10-23-2011 10:55 PM

How do I stop a character from walking through objects
 
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.

Gameboy 10-24-2011 12:29 AM

Not sure on this
 
1 Attachment(s)
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.


All times are GMT -5. The time now is 03:45 PM.

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