How do I fix my 'wall climbing' setup.

Just started using Construct 2? Post your questions here

Post » Wed Nov 26, 2014 12:20 am

Greetings again,

I have been trying to fix this setup for a while. I finally made wall climbing and jumping function how I wanted except that if you hold 'W' and move down to fall off the side of a sprite the gravity angle does not change and you ending up falling to the left or right side of the screen rather than drop down.

I've tried setting the gravity angle to change when falling on the last 'Else'; however, that makes jumping up the side of a wall impossible. I've attached my setup below to this post.

Update: I've been able to prevent this using an invisible sprite at the bottom of sprites that can you wall climb against that sets your gravity angle on collision. It seems like a messy solution though and I'd like to try for something better.

Thank you,
You do not have the required permissions to view the files attached to this post.
B
10
S
2
G
2
Posts: 87
Reputation: 1,274

Post » Sat Nov 29, 2014 10:10 am

Based on what I see there.. Maybe you can try testing if a point is overlapping an object (one of the system conditions). Put all your climbable stuff in a family, and test against that using the y position of your player, and bboxleft-1, bboxright+1 positions. That way, you won't need to use the extra sprite.
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949

Post » Tue Dec 09, 2014 9:32 am

Thanks for the reply, Prominent! : )
B
10
S
2
G
2
Posts: 87
Reputation: 1,274


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 10 guests