Alice Community  

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

Thread Tools Display Modes
Alice Maze Collision Issue - Please Help
Junior Member
Status: Offline
Posts: 1
Join Date: Dec 2011
Exclamation Alice Maze Collision Issue - Please Help - 12-13-2011, 11:01 AM

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!
Attached Files
File Type: a2w christmasmaze.a2w (3.12 MB, 11 views)
Reply With Quote
Alice Stinks at Collisions
Senior Member
TauTrumpsPi's Avatar
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default Alice Stinks at Collisions - 12-13-2011, 11:11 AM

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.

I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?

Wondering about my username?
Reply With Quote
Senior Member
dakota95's Avatar
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 12-13-2011, 02:05 PM

try this link:

Reply With Quote
possible help
Senior Member
AliceMaster00's Avatar
Status: Offline
Posts: 167
Join Date: Oct 2011
Location: You know that gap between the bottom of your dresser and the floor? Yeah, there.
Talking possible help - 12-14-2011, 10:40 AM

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
During: object move back 0.1 meter 0.01 seconds abruptly

Hope this works!

What a piece of work is a man? How noble in reason, how infinite in faculties, in form and in motion, how express and admirable how like an angel! What apprehension oh how like a god! The beauty of thee world, the paragon of animals, and yet- to me, what is this quintessence o' dust? Man delights, not me. Nor woman either, nor woman either.
Reply With Quote

collision detection, maze, problem

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