Anyone figure out shimming across a ledge?

Get help using Construct 2

Post » Mon Dec 19, 2016 1:27 pm

I want my player to grab ledge and hang then pressing left or right they can go along the edge with hands dangling the edge like Ninja Warrior Cliff hanger.
I have my character pinned to a rectangle shadow (PShadow). PShadow has the platform behavior.

I placed invisible sprites (Ledge)on the edges of platforms in higher places.
I have the player spawn a new sprite on falling and if it overlaps the Ledge and the player is holding W then the player grabs the edge. When player releases W the player springs up to land on the Platform. This works.

Now Whenthe player is still holding onto the ledge his state is Grab and he spawns an invisible sprite (Shimmy Sprite) with platform behavior and is set on the Ledge.xLedge.Y position.

So when W is down the player can move left (A) or right (D) to shimmy. So the Shimmy sprite moves on top of the ledge, but my player remains at the end of the edge in paused Shimmy animation.
I tried disabling the Players shadow platform behavior, but doesn't work. Tried pinning the Shimmy sprite to Character, but doesn't work. I've searched tutorials, but there are nine.

Any suggestions?

Thanks
B
33
S
15
G
10
Posts: 93
Reputation: 7,668

Post » Mon Dec 19, 2016 1:38 pm

Can you place some screenshots. It's little bit hard to understand your words.
B
9
S
1
Posts: 65
Reputation: 861

Post » Mon Dec 19, 2016 11:18 pm

Image
Image
Below: You can see the Blue rectangle (Shimmy Shadow with platform behavior) is starting to go across the ledge as I'm pressing right.
The red box is what the character is pinned too as the main platform shadow.
Image

This is where he clings on when "W" is held down and their is an invisible green shadow that is overlapping the orange platform ledge. The red shadow I believe is what is holding him from moving with blue shimmy shadow. Is there a way to pin both? I'm lost.
Image
B
33
S
15
G
10
Posts: 93
Reputation: 7,668

Post » Mon Dec 19, 2016 11:20 pm

Don't mind the light green box underneath the orange platform. That is a temp. camera that follows the player using lerp.
B
33
S
15
G
10
Posts: 93
Reputation: 7,668


Return to How do I....?

Who is online

Users browsing this forum: Resslx and 32 guests