Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Alice Maze Collision Issue - Please Help (http://www.alice.org/community/showthread.php?t=7799)

chickengirl1976 12-13-2011 11:01 AM

Alice Maze Collision Issue - Please Help
 
1 Attachment(s)
I am struggling with the collision detection on this maze. It will either force me out of the maze, allow me to walk through the hedges or wont let me in! Any suggestions gratefully received - I am new to Alice and this is my first attempt at a game - please be gentle! :confused:

TauTrumpsPi 12-13-2011 11:11 AM

Alice Stinks at Collisions
 
Unfortunately, Alice cannot tell where the walls of the maze are, just that the object itself is there. So when it is "in front of the maze", it means the entire maze, not the walls. There is no easy way to make the character not just pass right through, because Alice has no way of telling where the walls are. I would just give a message to the player telling them not to move through the walls.

By the way, if you make infinite movements "abruptly" they will smoother in transitions between new movements, so your spinning candy canes and trees will not pause between every revolution. Weird, but this is because they speed up from a standstill during gently, while there is no acceleration time during abruptly.

dakota95 12-13-2011 02:05 PM

try this link:
[url]http://www.alice.org/community/showthread.php?t=7781[/url]

AliceMaster00 12-14-2011 10:40 AM

possible help
 
Try this,
if object is 0.1 meter away from maze
object move back 0.1 meter 0.01 seconds abruptly

Then create an event that says:
While object is 0.1 meter away from maze
Begin:
During: object move back 0.1 meter 0.01 seconds abruptly
End:

Hope this works!


All times are GMT -5. The time now is 06:59 AM.

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