Need help very badly! Object collision -
01-31-2012, 07:37 PM
Hey alice community. I was wondering if someone could help me out with my project. I need to make it so the trolls in my game do not collide with each other and still go towards the knight. I have tried countless things, my game looks like a alice code graveyard with all the disabled codes lying around. I hope someone can help me. Thank you!
just use an if/else method and go to your troll's functions, and choose if object is within, stick that in the if part of your method, then hopefully you can figure it out from there. don't want to give to much away
If you are stuck on a project, check out the tutorials I made here at this link:
http://alice.org/community/showthrea...3&postid=44920
Read the next few posts after this one. The method used can detect collision, but you have to create collision yourself by making two objects not connect. Perhaps move them away from each other 1 meter if they're looking as if they need to get a room.