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