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,117

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
397
S
236
G
88
Posts: 24,422
Reputation: 194,558


Return to How do I....?

Who is online

Users browsing this forum: AllanR, brunopalermo, farsen, ST314, TheRealDannyyy and 37 guests