Alice Community  

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

Thread Tools Display Modes
Please help, need some assistance.!
Posts: n/a
Exclamation Please help, need some assistance.! - 06-13-2011, 10:21 PM

I have an object and i surrounded the object with walls, then I wrote a method to what should happen to the object if it is too close to the walls.

However what I need help with is how to detect whether the object in the center is close to the many other objects which form the wall.

I created a list of all the objects forming the wall and I attempted to use an if/else statement to determine while the center object is close to the wall, however using the list I could only select whether the object is close to the first or last wall of the list?

Any suggestions?
Reply With Quote
John Smithy
Junior Member
Status: Offline
Posts: 5
Join Date: Jun 2011
Cool 06-16-2011, 03:53 PM

You need a collision detection method
Here I got this from Dameria

I've used it for school, helps a lot
Attached Files
File Type: a2w Maze.a2w (1.08 MB, 4 views)
Reply With Quote

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.