Alice Community  

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

Reply
 
Thread Tools Display Modes
Need help very badly! Object collision
Old
hitherekyle
Junior Member
 
Status: Offline
Posts: 3
Join Date: Oct 2011
Default 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!
Attached Files
File Type: a2w Knightvstroll.a2w (5.39 MB, 12 views)
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 02-01-2012, 06:30 AM

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/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 02-01-2012, 10:11 AM

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.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.