How do I make a player jump on the ladder

Get help using Construct 2

Post » Tue Aug 11, 2015 10:00 am

So I've been reading all platform climb tutorials and this is the mechanic /feeling I liked the most:

/tutorials/548/simple-ladder-for-platformer-game

I applied it to my current proyect but there's one problem. If you climb into a platform through a ladder you can't go down because the floor becomes solid again. The way it works is while you're on the ladder the solid becomes unsolid so you can pass through kinda like a jumpthrough behaviour but once you're on the top of the platform you can't go down.

In the capx you can actually do it because there's no platform on the top of the ladder, but in my case I can't do that because tilemaps and the skeleton of the map. My ladder goes through the platform kinda like forming a cross
Last edited by Smileh on Wed Aug 12, 2015 2:14 pm, edited 1 time in total.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Tue Aug 11, 2015 10:08 am

Would it be possible to create a "detection"-sprite at the position you want the player to be able to use the ladder and disable the solid behaviour if overlapping that sprite and touching the down button?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 11, 2015 10:19 am

Quick update. Didn't notice the original capx has just the ladder just on top of the layer for a second I thought it was an empty solid. Anyways tried that as well and is not working for me. My player box is also 32x32 and the conditions and actions are the same. Basically I have all set up just as the example and won't go down the ladder from the top of a higher level.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Tue Aug 11, 2015 10:26 am

I found the problem. Had to give a higher value to set y to player.y +16 on the get on the ladder when above it.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Wed Aug 12, 2015 2:15 pm

Edited the title for my new question. How can I make the player jump on the ladder? Let's say I want to jump from one ladder to another ladder?

Right now only way to get off the ladder is by the conditions off the ladder on pressing one key but I want to be able to jump off the ladder into another ladder.

Any ideas? Thanks
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Wed Aug 12, 2015 8:56 pm

Anyone? Would appreciate some help.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Thu Aug 13, 2015 2:56 pm

Bump
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Fri Aug 14, 2015 11:56 am

Well, without looking at the example, I'd guess you could just make a custom command that sets the Y vector of the player to whatever their normal jump strength is (and also removes them from the ladder). For instance, you could copy the "get off ladder" event, change the trigger to your jump key, and set the vector in that event. If ladders are too "sticky" for that to reliably work, you could even temporarily disable ladder behavior for half a second or so; whatever timing works best for you.
B
27
S
5
G
1
Posts: 62
Reputation: 2,367

Post » Fri Aug 14, 2015 12:02 pm

The example is the tutorial mentioned on the first post.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Fri Aug 14, 2015 12:58 pm

I know, just being lazy. Anything I said apply? Might check the actual example later when I have more time.
B
27
S
5
G
1
Posts: 62
Reputation: 2,367


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 24 guests