Godot 4 Sourcelike Ladder Movement Tutorial | Intuitive Movement & Ladder Boost

  Рет қаралды 628

Majikayo Games

Majikayo Games

Күн бұрын

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): github.com/majikayogames/Simp...
Full Playlist: • Godot FPS Tutorial
GitHub Repo: github.com/majikayogames/Simp...
All source code and included assets are licensed under the CC0/public domain license.
How Godot's Transform3D Type Works: • How Godot's Transform3...
Dot product interactive web demo used in the video: majikayogames.github.io/dot%2...
Contents of this video:
0:00 - Intro
0:22 - How ladders work in source games
3:35 - Ladder nodes setup with Area3D (Download in description)
8:57 - Transform3D refresher
9:41 - Basic code setup
25:11 - Finish ladder code
30:55 - Final result/outro
If this tutorial helped you, consider supporting the channel on Patreon or Ko-fi:
/ majikayogames
ko-fi.com/majikayogames

Пікірлер: 26
@MajikayoGames
@MajikayoGames Ай бұрын
*NOTE/CORRECTION:* I just realized line 216 is not necessary as it's referencing (local) basis vectors for both camera and ladder. You don't need this and it will work fine, so I recommend taking it out. In fact it may bug out if your Camera3D setup is slightly different than mine. Here you can see I simplified to just dot product of 45 degrees from up with forward move: github.com/majikayogames/SimpleFPSController/commit/d6a00968cc56cb02923a4986cb1374bd162e594b
@sinecure5
@sinecure5 Ай бұрын
Thank you so much for these tutorials. No one else is covering these topics, especially stair stepping. You are creating tremendous value for the Godot community!
@MajikayoGames
@MajikayoGames Ай бұрын
Appreciate your comment :D I plan to add a bunch more to this series. Also working on an update to my free SimpleDungeons addon so I hope I can continue providing value to people!
@mattlarson2893
@mattlarson2893 Ай бұрын
A small improvement would be using a signal, either on the ladder or on the character, to inform the character to start climbing to avoid checking every ladder in the whole scene. Doing it this way bypasses the broad phase so it could get laggy if there are a lot of ladders. Cheers, great series
@MajikayoGames
@MajikayoGames Ай бұрын
thank you. yes it might be a little faster if using signals, however the Area3D is only updated as to whether its overlapping once per frame anyway, so we still check however many ladders each frame but i thought it should be negligible as it's not actually a physics check i dont think docs.godotengine.org/en/stable/classes/class_area3d.html#class-area3d-method-overlaps-body
@cataclysmicnothing
@cataclysmicnothing 5 күн бұрын
Come to learn how to walk up stairs, stay for everything else. Great playlist. Really appreciate the notes/corrections in pinned comments and seeing you respond to others' suggestions in the comments.
@MajikayoGames
@MajikayoGames 5 күн бұрын
Glad you enjoyed! :D
@amirosman8797
@amirosman8797 Ай бұрын
Awesome bro 👏, this tutorial keeps getting better and better, I really hope you’re planning on adding arms, weapons, shooting and stuff like that
@MajikayoGames
@MajikayoGames Ай бұрын
Yep, going to work on my SimpleDungeons addon for a bit, but after that one of the next things will be weapons & character model. Glad you enjoyed! :)
@amirosman8797
@amirosman8797 Ай бұрын
@@MajikayoGames Perfect 👍
@debiprasad3946
@debiprasad3946 Ай бұрын
Player and vehicle interaction
@debiprasad3946
@debiprasad3946 Ай бұрын
Entry and exit to the vehicle
@debiprasad3946
@debiprasad3946 Ай бұрын
Please make a video on player and vehicle interaction
@MajikayoGames
@MajikayoGames Ай бұрын
Will add this to my list of ideas :) I still have a bunch of tutorials to get through for this series I have planned. Next is going to be a weapon manager, HUD, and character model.
@ItsKorin__
@ItsKorin__ Ай бұрын
for me the jump velocity multiplier was a bit to hight but 0.5 did the job
@MajikayoGames
@MajikayoGames Ай бұрын
glad it worked for you :D thanks for the comment. yeah it depends on how you want your game to feel.
@ItsKorin__
@ItsKorin__ Ай бұрын
@@MajikayoGames thank's, amazing tutorial series by the way
@Kskakakakakkakak
@Kskakakakakkakak Ай бұрын
Please show us how to make a hook / Grappling gun🤔
@collinvisser7108
@collinvisser7108 Ай бұрын
Neat - thx
@c-domination
@c-domination Ай бұрын
You need to teach us how to replicate the source surfing.
@MajikayoGames
@MajikayoGames Ай бұрын
I already did a video covering this :) kzfaq.info/sun/PLbuK0gG93AsHID1DDD1nt4YHcdOmJvWW1 This is the 8th video. The 1st of the playlist covers surf & bhop.
@debiprasad3946
@debiprasad3946 Ай бұрын
Please.......
@tyler361t2
@tyler361t2 9 күн бұрын
any ragdoll physics?
@MajikayoGames
@MajikayoGames 9 күн бұрын
im interested in doing a video on this but i have some other stuff planned first :)
Crouch + Sourcelike Crouch Jump | Godot 4 FPS Controller Tutorial
19:23
LEVEL UP Your Game Design Toolkit (Godot for Beginners)
23:30
Coco Code
Рет қаралды 134 М.
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 50 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 110 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 19 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 10 МЛН
I Created The PERFECT Movement In Unity...
11:00
TheCodingPencil
Рет қаралды 2 М.
Character Body to Rigid Body 3D Physics Interaction | Godot 4 Tutorial
15:55
What’s content creation in Resonite look like?
14:59
a bird named Decoy on the internet
Рет қаралды 9 М.
Easy Realistic Water In Godot Tutorial
1:58
Majikayo Games
Рет қаралды 7 М.
Water Movement  + Visual Effect | Godot 4 FPS Controller Tutorial
15:54
How Godot's Transform3D Type Works
24:16
Majikayo Games
Рет қаралды 792
3 NEW Movement Games You Never Knew You Needed
9:47
Creem
Рет қаралды 848 М.
What's The Deal With Procedural Animation?
11:24
Geat
Рет қаралды 30 М.
Procedurally Generated 3D Dungeons v2
16:25
Majikayo Games
Рет қаралды 2,4 М.
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 50 МЛН