Detecting Touch in a Specific Area?

42 views
Skip to first unread message

Dark Samus

unread,
May 9, 2015, 6:43:00 PM5/9/15
to puzzle...@googlegroups.com
How do you detect if something is touching another object in a specific direction.
EX. A Wall that Touches a Crate at the bottom

Chris Pickel

unread,
May 9, 2015, 7:14:24 PM5/9/15
to Dark Samus, puzzle...@googlegroups.com
Put up, down, left, right, horizontal, or vertical before the rule, e.g.:
down [ Crate | Wall ] -> [ | Wall ] (removes crates that are pushed to the bottom)

On Sun, May 10, 2015 at 7:43 AM Dark Samus <hunterja...@gmail.com> wrote:
How do you detect if something is touching another object in a specific direction.
EX. A Wall that Touches a Crate at the bottom

--
You received this message because you are subscribed to the Google Groups "PuzzleScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puzzlescript...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dark Samus

unread,
May 9, 2015, 7:26:49 PM5/9/15
to puzzle...@googlegroups.com, hunterja...@gmail.com
Thank you, but one more question.

How do you detect 2 things at the same time?
EX.
If an Up Arrow (Which is below) is touching an object and is also touching Right Arrow (is Right of the object), then the base will turn into a UpRightArrow.

Chris Pickel

unread,
May 9, 2015, 7:56:16 PM5/9/15
to Dark Samus, puzzle...@googlegroups.com
There isn’t any way to test two directions at the same time. To test in multiple directions, you need two rules, where the first one puts the object in an intermediate state.
Reply all
Reply to author
Forward
0 new messages