Substitute for "has wall to right/left"?

Get help using Construct 2

Post » Fri Sep 30, 2011 10:02 pm

Like the title says, I'm looking for a way to replicate that expression for the platform behavior from CC to deal with the pesky problem of your character awkwardly running even though there's a wall in his face.

I was going to use overlap at offset, but that isn't here either. What other ways can I do this with the current functionality?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Sep 30, 2011 10:51 pm

Another typical solution is to have an invisible "detector" sprite, always positioned to the right and left of your object. To test if you're against a wall, test if one of the detectors overlaps a wall.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to How do I....?

Who is online

Users browsing this forum: suicidenutella, Vallar and 0 guests