Make a 2D Action Adventure Game with Godot 4
Lesson 2: Moving our player
Make a 2D Action Adventure Game with Godot 4
- Lesson 1: Introduction and project setup 16:30
- Lesson 2: Moving our player
- Lesson 3: Creating a tilemap 23:55
- Lesson 4: Tilemap and player collisions 19:16
- Lesson 5: Adding a camera and jumping 28:45
- Lesson 6: Adding player animations 32:09
- Lesson 7: Run & jump sound effects 24:04
- Lesson 8: Creating a state machine 41:32
- Lesson 9: Adding player states 41:57
- Lesson 10: Player health & tween hit flash 30:30
- Lesson 11: Our first enemy - the scorpion 49:55
- Lesson 12: Player attack state and animation 50:20
- Lesson 13: Hooking up the hurtbox with signals 30:07
- Lesson 14: Making our scorpion die 37:55
- Lesson 15: Player invulnerability 36:12
- Lesson 16: Player knockback code 34:06
- Lesson 17: Player knockback animation & state 25:08
- Lesson 18: Coyote time, acceleration, and variable jump height 29:06
- Lesson 19: Lookahead camera 26:48
- Lesson 20: Spawn state 26:10
- Lesson 21: Basic UI (hearts) 24:24
- Lesson 22: Connecting the HUD to the player 34:02
- Lesson 23: Creating a base collectable scene 34:25
- Lesson 24: Making a heart collectable 29:03
- Lesson 25: Coin collectable and coin display 37:33
- Lesson 26: Spawning collectables on enemy death 30:36
- Lesson 27: Parallax background and sand vignette 19:05
- Lesson 28: Expanding our tilemaps & making a new level 31:51
- Lesson 29: Portals and changing levels 24:40
- Lesson 30: Handling player death 26:31
- Lesson 31: Respawning the player after falling off a ledge 19:06
Video Notes
We’ll start slowly by getting our player character to start moving.
If you haven’t already, you can grab the assets you need here: https://public.quiver.dev/tutorials/curse-of-the-tomb/curse-of-the-tomb-assets.zip.
Each lesson has a corresponding commit in our Github repository: https://github.com/quiver-dev/curse-of-the-tomb-tutorial.
If you have any questions drop a comment here or on Discord.
-
Lucky
Aug. 16, 2023 at 9:47 p.m.I am super new to Godot (and to programming in general):
But downloading Github Desktop and choosing your project folder for GitHub Desktop, makes everything automatic. All you have to do is name the commit and push it to main. 2 clicks :p
I’m travelling quite a lot, so I had to keep my projects on my desktop and my laptop identical. This works without any issues, assets work fine as well
-
JTW789
Aug. 3, 2024 at 8:43 p.m.If anyone tries to run the game and doesn’t see anything, that may be due to the Animation Frame in your Sprite2D. I was playing around with the different frames, and my frame was set to an unused frame (there was no image), so I didn’t see anything. Once I set the image to frame 28, THEN it showed the sprite and I could see it moving left and right.
MiaJ
Aug. 16, 2023 at 1:53 a.m.Is there a good tutorial on how to set up git to use the version control option built into Godot? I have tried to set it up but have not been able to get it to work.
amit
Aug. 16, 2023 at 2:16 p.m.I’m not aware of any specific Godot-specific Git tutorials, but you should be able to use any standard Git tutorials and just remember a few things that are specific to Godot:
You’ll want to add the .godot directory to your .gitignore file, meaning you don’t want to check in that directory to source control, as that’s specific to the editor and not the codebase.
This is not specific to Godot but applies to game development in general, but Git doesn’t handle large files that well, which is problematic for asset files. For this course, the assets aren’t that big so you can get away with checking them into Git. But for larger projects you might want to use something like GitLFS to handle large asset files.
What problems are you running into? You can post it here or hop on to our Discord to get help.