#How to make a ladder?

4 messages · Page 1 of 1 (latest)

exotic oasis
#

I'm new to Godot and I don't know how to write the code for the ladder correctly so that its code works with the physics of the player.
(I take all the info either from sources or from videos on YouTube)

The player's script in the photo

I will be grateful in advance for your help.

exotic oasis
#

kind delta
#

https://www.youtube.com/watch?v=uW01u_1PldI&t=203sThis tutorial teaches you how to make a ladder-climbing mechanism similar to CS without changing too much of your original Player code. Although it is a bit complicated, I believe you can understand it.

The eighth video of a series where we will build an FPS game. This video shows how to implement sourcelike ladder movement, which takes into account both the player's look direction and directional input to control how they move up and down or side to side on ladders.
Ladder scene with the node setup I used (CC0/public domain): https://github.co...

▶ Play video
#

You can't just copy the code in each tutorial and it will run perfectly. Don't be too idealistic. You must make corresponding modifications according to your own project content. This is necessary. The modification process is not that difficult because most of the tutorial content is presented to you. In this process, you not only understand your project, but also understand the tutorial content. I think this will help improve your technical level.