Add Enemies and Traps to your GAME (Godot beginner tutorial)
🆓 FREE BONUS LESSON: cococode.net/courses/godot-me... 🆓
🎁 Support Coco Code! / cococode
🤯 Join Coco Code members: / @cococode
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
Additional graphics: www.flaticon.com/
--------------------------------------------------------------------------------
👨💻 SOCIALS:
💜 Join our Discord: / discord
🔵 Follow me on Twitter: / cococodeyt
--------------------------------------------------------------------------------
🎓 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
Пікірлер: 82
➡FREE Bonus lesson here: cococode.net/courses/godot-mega-tutorial - Double jump ⏫ - Background parallax 🌃 - and more!
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.
@CocoCode
11 күн бұрын
That sounds amazing! Good luck on this and your future projects! Pssst: Remember that you can access 4th video in the series here: cococode.net/courses/godot-mega-tutorial
HECK YEAH! I have been waiting for this part!
@opoboi
14 күн бұрын
Me too! I've been trying to make enemies forever and I can finally do it >:D
Omg good job! Can’t wait for part 4
@CocoCode
18 күн бұрын
Thank you! Be sure to check out the bonus video on cococode.net/courses/godot-mega-tutorial
it's been so long finally
Finally! I have been waiting for this for so long!
This guide is so helpful!
Thanks ! Best tutorial
This is genuinely SO polished. It helped me more than those GDquest tutorials!
very very good, each step easily followable
@CocoCode
17 күн бұрын
Thanks for the feedback! I was afraid some of the sections might be harder to follow 😮💨
Visualizing the process with animations is considered a quality content in my book. love your content. can't wait for more !
really liked this video also and really excited to go to your website
Love your tutorials so much😭💯❤🔥❤🔥❤🔥❤🔥
Omg yes I've been waiting for this part tysm I love your platformer series
these videos are always so well done and high quality
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.❤
@CocoCode
10 күн бұрын
Thanks! Glad you enjoyed it 🔥
I’ve been waiting for this for so long
Thank you! I'll try it 😊🎉
Thank you, U helped me too much, Much love
Thanks man you are really helping me with my coding journey ❤🔥🔥
Thanks very much. you are the best
YESSSS YESSS I LOVE YOU MAN. YOU DONT KNOW HOW MUCH YOU HELPED ME
I love your tutorials!
@CocoCode
18 күн бұрын
Thank you so much! 💙
thanks, im waiting for continuation
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?
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!!
Yeah! finally I needed this so bad Heck I'm actually watching your 2nd tutorial right now for a project for school
Big fan I watch all your tutorials and learn something new ❤❤❤❤😊😊
finally after your last second godot video tutorial you made new best tutorial
thanks a lot for making such a tutorials i just started making game with your videos now i am a very good developer
NEW DROPP!!!!
Ur content has actually saved me for school
YES!
I love you I watch you from egypt❤❤😂🎉
im so confused (and a little tired, it was late) i followed it exactly and when i jump on the enemies it says its been destroyed but the sprite and collisions are still there they haven't been cleared
finallllllyyyyyyyyyyyyyyyyyyyyyy!!!!
maybe tutorial for how to add lucky blocks from mario? and power ups??
Is anyone facing the problem in which when we touch the enemy from the side,we donot go flying in the opposite direction if we are still pressing the movement keys?
@zpiks6729
2 күн бұрын
Yes
Spoko film, tylko brakuje mi tej rzeczy w prawym górnym rogu co pokazuje ile do nastęnego etapu :// (schociaż co ja narzekam patrząc na jakość moich filmów)
@CocoCode
18 күн бұрын
Oops 🙈 Remember to check out the video chapters for faster navigation 🏎️💨
Thx for the videos, they're super insightful! Quick question: at 08:04 - why not attach the script to collision child directly? Is it because the collision is a behavioral property of the "area 3D" and needs the latter to dictate what to collide with? I'm assuming it's like with world blocks - collision alone can't do much unless it has a parent to dictate what the object is colliding against.
Let's go, yes sir. Hey CocoCode can you do a gameover screen UI where you can restart from the gameover screen after you die in the levels. I'm doing that for my game but, I'm having serious trouble for implementing the feature, can you make a tutorial about it please.🙏
Thanks! Could you make a tutorial how to make Isaac-like game in Godot?
Can you make a video where you attack the enemy head on with a punch pressing on a certain key. Also the enemies to move around would be cool
10:11 Disclaimer please! Now i have to change the paths again :(
👍
yaaaaaaaaa bro you can pley my game
I notice you always change the texture filter from "inherit" to "nearest" : why not do it globally via the top menus? (the project settings, where you set the value it inherits from)
@CocoCode
17 күн бұрын
Hey! I’m aware of this setting but I prefer to always mention it in order to avoid confusion from newcomers
Finally this part has been released, but I have encounter an issue and cannot find the solution, please help me, the enemies are dying wherever my character touch them, and everything in the code is similar
Music in Different Areas with area2D and CollisionShape2 I am Currently developing a game for a projact at my university (simple 2D Topdown game). I have a map with 4 different areas. I want to change the background music as i enter the each area (area2D & CollisionShape2D). But i dont know how to do that. Could anyone help me?
A question for anyone who can answer: when hitting on my first enemy, i get a value of 5.etc, when jumping on it i get a value of -3.etc however this enemy is rather ight up on the map. an enemy directly under it (to the lower end of the map) gets a value of -400+ and when jumped on it gets a similar value. How do i fix
Can you please name another app for a hear
hello dev i did make a good progress with ur tutorials but i lost the game file from a trojan ransomware can u help me to remove (vepi) format from my file?
❤
Hey! Do you know why the function "jump_side" doesnt work for me? I copied that exact script but instead of doing a side jump, it does just a normal jump.
@_The_Dark_Knight_Official
3 күн бұрын
Do jump_slide
@Quick_Noise
2 күн бұрын
same problem here
@_The_Dark_Knight_Official
2 күн бұрын
@@Quick_Noise do jump_slide instead of jump_side
@Quick_Noise
2 күн бұрын
@@_The_Dark_Knight_Official is jump_side a function built-in godot ?
@_The_Dark_Knight_Official
2 күн бұрын
@@Quick_Noise idk I just know that jump_slide works but jump_side doesn't so it must be
Hello, first of all thanks for your tutorials, but I got an issue. I copied and pasted all the content we did in this video to my second level (like the hearts, the void, the enemys) but now when I touch an enemy on the second level, I just crash instead of loosing a life (killing them works tho)
Hey Coco Code? I have a question.
@CocoCode
18 күн бұрын
👋
@VictorTheVictini
18 күн бұрын
@@CocoCode When I try to run my game it gives me the "Unable to initialize vulkan video driver" error... How Do I fix this? (Version 4.2.2 btw!!)
Man what happened to unity tutorials
hey coco code , i start creating games after founding your channel , i started also a youtube channel , any kinds of advices can you give me, such as how to edit my videos or how to make a tutorial series
Hell yeahh!! ❤️🩹
12:40 I'm stuck at this point because the values for walking into the enemy and then jumping on top of the enemy are the same or at least really similar Here's my code: func _on_hit_box_area_entered(area): if area.get_parent() is Player: var y_delta = position.y - area.position.y print(y_delta) And then what it printed out: 143.92399597168 143.92399597168 btw I tried doing the body entered thing but it wasn't printing out any numbers. This was the only way I could get it to give a value
@darilrafansyah5947
12 күн бұрын
u would probably need to use on body entered instead, because the characterbody2d is inherited from the body instead of area, u should check out the signals too if it somehow not connected properly
@1Darr
12 күн бұрын
@@darilrafansyah5947 still not working Edit: I figured it out eventually lol
👍