Add Enemies and Traps to your GAME (Godot beginner tutorial)

preview_player
Показать описание

This tutorial/guide will show you how to add Enemies to your Godot Game. I will also teach you how to add traps (ground holes) and lives system. That way you will be able to introduce a challange to your game

--------------------------------------------------------------------------------
📋 CREDITS:
Some images have been generated using Adobe Firefly

--------------------------------------------------------------------------------
👨‍💻 SOCIALS:

--------------------------------------------------------------------------------
🎓 YOU WILL LEARN:
- How to create enemies in Godot
- How to create hearts in Godot
- How to implement health system in Godot
- How to code jumping on enemies
- How to create Pause menu in Godot
- UI design in Godot
- How to create an animated sprite

--------------------------------------------------------------------------------
⚙️ VIDEO CHAPTERS:
0:00 - Intro
0:19 - Health points I
2:50 - Enemies I
5:32 - Traps (ground falling)
9:08 - Project cleanup
10:36 - Enemies II
13:52 - Pause menu
18:18 - Health points II
Рекомендации по теме
Комментарии
Автор

- Double jump ⏫
- Background parallax 🌃
- and more!

CocoCode
Автор

HECK YEAH! I have been waiting for this part!

cleric
Автор

Visualizing the process with animations is considered a quality content in my book.
love your content. can't wait for more !

Quick_Noise
Автор

I had an issue with both running into and jumping on enemy "decreased player health" no matter what... Now even though i havent finished the tutorial yet, i believe i have a fix. And will update if i run into future problems. Heres the fix:

FIX:

In the video line 17 of the mushroom script ~~~ if (y_delta > 30): ~~~ was causing problems. You must flip the > to < to read as ~~~ if (y_delta < 30): ~~~

Hope this helps.

TheAmericanCelt
Автор

if the code didnt work at 12:50 write: "if (y_delta > -30):" instead of "if (y_delta > 30):"
i think it will fixed

ZakiDZxD
Автор

Sorry for commenting so late, but 8 month ago i asked for this video, thanks brother! Love ur videos they are the best❤

averagechad
Автор

actually the best godot tutorial, can you please show how to make attack animations and hitbox?

goldensymbol
Автор

On 10:02 I'd usually prefer to do @export on the script and drag the scene file on the node inspector, this really helps to avoid breaking the path file if we decided to move around the mentioned scene.

Oh yeah u would also need to use "change_scene_to_packed" instead for this one.

Anyway, great video Coco! You've been helping me so much on my early gamedev project!!

darilrafansyah
Автор

Thank you very much for this series of videos.

I am an indigenous person from Quebec, and with these videos, I will be able to create a small 2D platformer with legends from my ancestors to interest young people in their history.

I wish you a beautiful day.

May the Creator protect you, my friend.

Kharliito
Автор

very very good, each step easily followable

Ralke
Автор

PART 3 BABYYYY!!!! I love this series SO much it's helping me start game design which for some reason I am HORRIBLY afraid of??? I don't know myself but thank you so much for this!!!

christianh
Автор

This is genuinely SO polished. It helped me more than those GDquest tutorials!

SpiffyDEV
Автор

My code works well, but for some reason when I touch the enemy, I move up, but I don't get knocked along the x axis

rideaway
Автор

Thank you so much! the bonus lesson was exactly what I needed. I was so frustrated by the extra parts of some tiles which the character's collision box always detected. but then your extra lesson helped me fix it.❤

Ogu
Автор

Its been 7 months since i got off youtube just to wait for you, finally u dropped it

ragnarok
Автор

YESSSS YESSS I LOVE YOU MAN.

YOU DONT KNOW HOW MUCH YOU HELPED ME

orangemonks
Автор

I would love to see a tutorial with check points next! making a level with lots of holes on the ground and dying only for the game to restart might be quite annoying to some, is there a possibility that we get a checkpoint system in the next video?

KeetoIsCultured
Автор

this is so underrated man. I love your work and I wouldn't have gotten into coding if not for your tutorials.

haddennguyen
Автор

Omg yes I've been waiting for this part tysm I love your platformer series

King-Sugaroo
Автор

Thanks man you are really helping me with my coding journey ❤🔥🔥

mesoipextra
join shbcf.ru