SOS - How do I climb ladders?!

Hey all,

I’m new to flowlab and have yet to find any useful forum posts about this issue. They’re either outdated, or not really answered well, so I’m asking for some updated help on how to make this happen. Any step-by-step process would be appreciated because I’ve tried switches, positions, and all other kinds of stuff and I’m either not linking it correctly or there really is just no way to make this possible :frowning:

Thanks so much.

1 Like

You must not be linking it correctly, because it only takes a few seconds to make a ladder, and I can’t really explain it any easier than I did in the other people’s posts, but I guess I can make one and screenshot it.

1 Like

Welp, as I said, no previous forum posts have been helpful to me and they were outdated, which then led to responses like “this forum post is old make a new one” hence why I made a new one.

Alright, so I made a quick example, it doesn’t remove x movement. Some people want to jump past ladders, but it feels slippery. If you hold up, you’ll always grab on, though. You can change that if it bothers you, this is just a better version of a simple ladder, because I added climbing up and down with no gravity pull, and walk the gap. I also used raycast jumping, which I normally would say is better than collision jumping, but that’s also up to you, if you are already using the run and jump bundle. I used raycast instead of proximity for ladder to guarantee that you are parallel to the ladder, instead of next to it, less buggy. https://flowlab.io/game/play/943500

I packaged it into a bundle that you can paste and adjust in your game.
[spoiler]
{"data":{"behavior":{"nodes":[{"outputCount":0,"x":180,"group":"","y":160,"name":"Ladder logic","id":"5c34242f03af204b","inputCount":0,"isMenuItem":false,"behaviorType":"logic.NodeGroup"},{"outputCount":2,"x":180,"group":"5c34242f03af204b","delay":0,"y":160,"name":"Keyboard","id":"5c02bda4d130ac43","inputCount":0,"repeats":true,"keyCode":37,"behaviorType":"logic.triggers.Keyboard"},{"outputCount":1,"x":810,"group":"5c34242f03af204b","y":832,"name":"Switch","id":"5c0d5a8c7eb9fb4d","inputCount":3,"_startVal":0,"behaviorType":"logic.logic.Switch"},{"outputCount":3,"x":720,"group":"5c34242f03af204b","y":224,"name":"Velocity","id":"5c039b81bd78eb4b","inputCount":3,"behaviorType":"logic.properties.Physics"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","direction":270,"y":448,"name":"RayCast","id":"5c11aac47c13be4d","length":20,"inputCount":3,"targetClassId":4735561,"behaviorType":"logic.components.RayCast"},{"outputCount":1,"x":810,"group":"5c34242f03af204b","y":640,"name":"Switch","id":"5c0a52a22b4a5b4b","inputCount":3,"_startVal":0,"behaviorType":"logic.logic.Switch"},{"outputCount":1,"x":180,"group":"5c34242f03af204b","y":448,"name":"Always","id":"5c09daebb479fa42","inputCount":0,"behaviorType":"logic.triggers.Always"},{"outputCount":1,"x":990,"group":"5c34242f03af204b","startVal":-5,"y":736,"name":"Number","id":"5c103c1304436a4f","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","delay":0,"y":832,"name":"Keyboard","id":"5c02ba99f6ac424b","inputCount":0,"repeats":true,"keyCode":40,"behaviorType":"logic.triggers.Keyboard"},{"outputCount":1,"x":360,"group":"5c34242f03af204b","startVal":5,"y":256,"name":"Number","id":"5c034e1dc8bd0748","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":1,"x":990,"group":"5c34242f03af204b","startVal":5,"y":832,"name":"Number","id":"5c1039806c241743","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":1,"x":360,"group":"5c34242f03af204b","startVal":-5,"y":160,"name":"Number","id":"5c034edcb2c7f44a","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":1,"x":810,"group":"5c34242f03af204b","y":736,"name":"Switch","id":"5c0c86045b101c47","inputCount":3,"_startVal":0,"behaviorType":"logic.logic.Switch"},{"outputCount":2,"x":1170,"group":"5c34242f03af204b","resetVelocity":true,"y":768,"name":"Position","id":"5c1cc1660cdcf844","pixelUnits":true,"inputCount":4,"behaviorType":"logic.properties.Position"},{"outputCount":1,"x":540,"group":"5c34242f03af204b","gateType":"AND","y":352,"name":"Logic Gate","id":"5c1909a9d1d56b44","inputCount":2,"behaviorType":"logic.logic.Gate"},{"outputCount":3,"x":1170,"group":"5c34242f03af204b","y":640,"name":"Impulse","id":"5c0aac8960e8104a","inputCount":3,"behaviorType":"logic.components.Impulse"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","direction":90,"y":352,"name":"RayCast","id":"5c117dad45565142","length":20,"inputCount":3,"targetClassId":4735561,"behaviorType":"logic.components.RayCast"},{"outputCount":1,"x":720,"group":"5c34242f03af204b","startVal":-25,"y":352,"name":"Number","id":"5c04683d4effd14b","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":1,"x":540,"group":"5c34242f03af204b","gateType":"OR","y":448,"name":"Logic Gate","id":"5c193ad285fa7a46","inputCount":2,"behaviorType":"logic.logic.Gate"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","direction":90,"y":544,"name":"RayCast","id":"5c09632170569341","length":22,"inputCount":3,"targetClassId":4735557,"behaviorType":"logic.components.RayCast"},{"outputCount":2,"x":180,"group":"5c34242f03af204b","delay":0,"y":256,"name":"Keyboard","id":"5c02bcd948986c4a","inputCount":0,"repeats":true,"keyCode":39,"behaviorType":"logic.triggers.Keyboard"},{"outputCount":1,"x":990,"group":"5c34242f03af204b","startVal":8,"y":640,"name":"Number","id":"5c0abf6bf8102c4a","inputCount":3,"tag":"","behaviorType":"logic.logic.Value"},{"outputCount":3,"x":900,"group":"5c34242f03af204b","y":352,"name":"Motor","id":"5c04773ff8dd9845","inputCount":3,"behaviorType":"logic.components.Motor"},{"outputCount":3,"x":720,"group":"5c34242f03af204b","y":128,"vertical":false,"name":"Flip","id":"5c06d13dba0fee41","inputCount":3,"behaviorType":"logic.properties.Flip"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","delay":0,"y":640,"name":"Keyboard","id":"5c02bbce354bdf46","inputCount":0,"repeats":false,"keyCode":38,"behaviorType":"logic.triggers.Keyboard"},{"outputCount":2,"x":360,"group":"5c34242f03af204b","delay":0,"y":736,"name":"Keyboard","id":"5c0cfcac6da20b4f","inputCount":0,"repeats":true,"keyCode":38,"behaviorType":"logic.triggers.Keyboard"}],"links":[{"output_id":"5c02bda4d130ac43o0","input_id":"5c034edcb2c7f44ai1"},{"output_id":"5c0d5a8c7eb9fb4do0","input_id":"5c1039806c241743i1"},{"output_id":"5c11aac47c13be4do0","input_id":"5c193ad285fa7a46i1"},{"output_id":"5c11aac47c13be4do1","input_id":"5c1909a9d1d56b44i1"},{"output_id":"5c0a52a22b4a5b4bo0","input_id":"5c0abf6bf8102c4ai1"},{"output_id":"5c09daebb479fa42o0","input_id":"5c117dad45565142i2"},{"output_id":"5c09daebb479fa42o0","input_id":"5c11aac47c13be4di2"},{"output_id":"5c09daebb479fa42o0","input_id":"5c09632170569341i2"},{"output_id":"5c103c1304436a4fo0","input_id":"5c1cc1660cdcf844i3"},{"output_id":"5c02ba99f6ac424bo0","input_id":"5c0d5a8c7eb9fb4di2"},{"output_id":"5c034e1dc8bd0748o0","input_id":"5c06d13dba0fee41i1"},{"output_id":"5c034e1dc8bd0748o0","input_id":"5c039b81bd78eb4bi0"},{"output_id":"5c1039806c241743o0","input_id":"5c1cc1660cdcf844i3"},{"output_id":"5c034edcb2c7f44ao0","input_id":"5c06d13dba0fee41i0"},{"output_id":"5c034edcb2c7f44ao0","input_id":"5c039b81bd78eb4bi0"},{"output_id":"5c0c86045b101c47o0","input_id":"5c103c1304436a4fi1"},{"output_id":"5c1909a9d1d56b44o0","input_id":"5c04683d4effd14bi1"},{"output_id":"5c1909a9d1d56b44o0","input_id":"5c0c86045b101c47i0"},{"output_id":"5c1909a9d1d56b44o0","input_id":"5c0d5a8c7eb9fb4di0"},{"output_id":"5c117dad45565142o0","input_id":"5c193ad285fa7a46i0"},{"output_id":"5c117dad45565142o1","input_id":"5c1909a9d1d56b44i0"},{"output_id":"5c04683d4effd14bo0","input_id":"5c04773ff8dd9845i1"},{"output_id":"5c193ad285fa7a46o0","input_id":"5c0c86045b101c47i1"},{"output_id":"5c193ad285fa7a46o0","input_id":"5c0d5a8c7eb9fb4di1"},{"output_id":"5c09632170569341o0","input_id":"5c0a52a22b4a5b4bi1"},{"output_id":"5c09632170569341o1","input_id":"5c0a52a22b4a5b4bi0"},{"output_id":"5c02bcd948986c4ao0","input_id":"5c034e1dc8bd0748i1"},{"output_id":"5c0abf6bf8102c4ao0","input_id":"5c0aac8960e8104ai1"},{"output_id":"5c02bbce354bdf46o0","input_id":"5c0a52a22b4a5b4bi2"},{"output_id":"5c0cfcac6da20b4fo0","input_id":"5c0c86045b101c47i2"}],"v":"2"}}}
[/spoiler]

This is great, thanks so much!

Hey @“Mhx Ar” - thanks for putting this example together. I added it to the examples page here, since this has been asked about lots of times: http://flowlab.io/examples

1 Like

No problem, glad to help.
Hopefully it was easy enough to figure out from the example. I tried to keep the wires clean.

Thanks Mhx Air, I was wondering about that…

This did not work for me and I don’t know why.

1 Like

Firstly, this post hasn’t been used since 2018, secondly, did you import it correctly?

2 Likes

I also made a game that uses stairs. Maybe it’s helpful

It did not work for me I checked it over 5 times and made sure that everything was correct.

I checked it like 5 times. do you know of a way to make ladder work because I am close to just taking them out of my game.

Copy. Click. Import. Done. I’d check to make sure you’re putting it in the correct object and setting the collisions/proximities to the correct object type.

As I said I checked each of the thing you mention at least 5 times so I have spent the last day trying to figure it out on my own. I will try one more time.

How about this: share the link so I can tell you what you are doing wrong.

It worked finally. Apparently there is a difference between copy from the game and just placing the code yourself.

There shouldn’t be a difference. What did you have to change?