In this video we'll learn how to create a modular player character for moving in a 2D platformer environment in Godot 4. I'm seeing lots of people struggling to keep it simple and putting all their movement/animation/etc code in one big player character script. In this tutorial we're using Composition to give our player the movement it needs.
Start-up Project on Github (for following along):
github.com/Una1n/PlatformerMo...
SunnyLand Assets by Ansimuz:
ansimuz.itch.io/sunny-land-pi...
Finished Project:
github.com/Una1n/Platformer2D...
Chapters:
0:00 Intro
0:25 Project Settings
1:51 Project Setup
2:15 Player Scene
4:15 Gravity Component
6:48 Input Component
8:24 Movement Component
9:57 Animation Component
12:47 Jump Component
14:17 Jump Animations
14:50 Finished
15:08 Modular Enemy Example
15:38 Next Part of the Tutorial
15:49 Outro
Негізгі бет Ойындар Making a Better 2D Movement Controller (Part 1)
Пікірлер: 19