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
381
S
222
G
84
Posts: 23,975
Reputation: 189,160


Return to How do I....?

Who is online

Users browsing this forum: Estudio Naranja, Google [Bot], LaurenceBedford, LeirSchiessl, mekonbekon and 2 guests