DevWorm
DevWorm
  • 112
  • 2 107 904
How to Create Customizable Health Bars in Godot 4
Today we create a health bar scene that works modularly with any entity in our game! We step by step create the health bar scene and go over the creation of the script! Then we will instance the newly created health bar scene within our player, flying enemy, and ground enemy! And see the smooth working customized health bar we just created working in game! Displaying health in a clean way is so important to producing an exciting, fun experience for the player! So today I will cover everything you need to know about health bars in Godot 4.
This tutorial is part 9 of the Hack’n’Slash series where we cover how to create a Hack’n’Slash game in the Godot 4 game engine! There is so much information in these tutorials so whether this is your first ever Godot game or you are just trying to learn new ways to go about things this tutorial is perfect for you!! If you need help with anything at all then please reach out in the comments!! thanks!! I hope you can learn new knowledge about creating games in Godot! I wish you the best of luck throughout this series!
Link to Entire Hack’n’Slash Playlist: ua-cam.com/play/PL3cGrGHvkwn3Zi2BRFgdemV6T6afvWTFx.html
Player Art Link: siviovi.itch.io/dacian-warrior-aimated-pixel-art-2d/download/eyJpZCI6MTQyOTQwNSwiZXhwaXJlcyI6MTcxNDMxOTUzM30%3d.lFAXgiQ1DBuZwuDm8Dkq%2bCofFDU%3d
Background / Terrain Art Link: zamcham.itch.io/pixel-art-tile-set
Bat Enemy Art Link: eduardscarpato.itch.io/bat-animations-pixel-art-2d-free
Toxic Frog Enemy Art Link: eduardscarpato.itch.io/toxic-frog-animations-pixel-art-2d-free
Help Support DevWorm!!! (Patreon): patreon.com/DevWorm
Chapters:
0:00 Intro
0:36 Customizing Health Bar
2:54 Health Bar Script
9:01 Instancing Health Bar Scene
10:27 Tutorial Recap
Thank you so much for watching, I really hope this video helped.
if you did enjoy or this video was helpful then all I ask is if you could please subscribe to help out the channel. It means so much and I love your feedback in the comments. I’ll look forward to getting back to you soon! Again thanks so much and I would love to see you again!
These Tutorials take a lot of time to create and I’m working on becoming a better Teacher and learning how to explain Godot things in a better way, if you’d like to support this journey to expand knowledge and help other game dev’s learn to create their own games then please.. Become a Member! It would mean the world and you’ll help me out so much! Thank you!
have a great rest of your day and of course be safe :)
- thanks DevWorm
Переглядів: 938

Відео

How to Track and Display Score in Godot 4
Переглядів 1,3 тис.19 годин тому
Today we cover everything there is to know about keeping track and displaying the score of your game in Godot 4. I walk you through the logic behind tracking and changing scores while also going through step by step how to display that information on the screen in the form of UI that updates in real time!! Having the ability to display a score is so important to the players experience as it pus...
What is The BEST Game Engine?!?
Переглядів 2,6 тис.14 днів тому
Game development is a wonderful journey but every game engine has its own pros and cons, its own features and flaws and every project you work on has its own needs. So we need to think of the game engines like tools!! What type of games do you want to create?? It will help you decide which engine is best for your specific needs! So today we cover the 4 main game engines Unity, Unreal, Godot, an...
How to SPAWN Enemies in Godot 4 (spawning system)
Переглядів 3,4 тис.14 днів тому
Today we cover everything there is to know about spawning enemies in Godot 4. I walk you through step by step how to prepare and spawn different types of enemies in a wave like spawning system!! Learning how to instance enemies into your game at random or set certain locations and times for each spawn. Spawning entities is so important to having an amazing combat system in game development! I w...
How to Create Excellent PLATFORMER ENEMIES in Godot 4
Переглядів 3,4 тис.21 день тому
Today we cover how to make a platformer enemy in Godot 4!! I walk you through step by step how to create a platformer enemy while covering everything from movement, animations, taking damage, dealing damage, death and so much more. I will try to cover all you need to know about platformer enemies in Godot!! This tutorial is part 6 of the Hack’n’Slash series where we cover how to create a Hack’n...
The 7 MOST Useful ADDONS for Godot 4
Переглядів 16 тис.21 день тому
Addons in Godot can help make development so much easier!! Installing an Addon is basically like updating the engine but updating the engine for what we specifically need!! So we can make this already very powerful engine into something even more suited for our needs!! These 7 addons are so helpful and I think are the most beneficial Addons to use in Godot 4 Scene Manager: github.com/glass-bric...
How to SMOOTHLY Transition Scenes in Godot 4
Переглядів 5 тис.28 днів тому
Today we cover how to change scenes in Godot 4!! I walk you through step by step how to transition scenes in Godot while also covering how to implement a transition animation. I will do my best to cover all you need to know about scene changes in Godot!! This tutorial is part 5 of the Hack’n’Slash series where we cover how to create a Hack’n’Slash game step by step in the Godot 4 game engine! T...
Create a Complete COMBAT SYSTEM in Godot 4 (step by step)
Переглядів 4,5 тис.Місяць тому
Today we cover the creation of a complete combat system in Godot 4!! I walk you through step by step how to create player attacks, enemy attacks, player and enemy health, player and enemy despawning, and how to structure your combat in Godot. Today you will learn how to implement overall smooth combat for your Godot projects. This tutorial is part 4 of the Hack’n’Slash series where we cover how...
TOP 6 Godot Games Planned to Release in 2024
Переглядів 8 тис.Місяць тому
The Godot engine has produced so many amazing games in the past and today I wanted to take a look at some of my favorite games releasing in 2024 that have been developed in the Godot game engine!! The list of games both 2D and 3D really shows the power of the Godot game engine! I hope this gets you excited for the future of Godot and inspires you!! Pingo Adventure on Steam: store.steampowered.c...
How to Create ENEMY MOVEMENT in Godot 4
Переглядів 3,8 тис.Місяць тому
Today we cover the creation of a flying enemy’s movement!! I walk you through step by step how to create this type of enemy in your Godot project. This tutorial is part 3 of the Hack’n’Slash series where we cover how to create a Hack’n’Slash game step by step in the Godot 4 game engine! There is so much information in these tutorials so whether this is your first ever Godot game or you are just...
Create Complete Player ANIMATIONS in Godot 4 (step by step)
Переглядів 4 тис.Місяць тому
In this series we cover how to create a Hack’n’Slash game step by step in the Godot 4 game engine! There is so much information in these tutorials so whether this is your first ever Godot game or you are just trying to learn new ways to go about things this tutorial is perfect for you!! This tutorial here is episode 2 and we will be covering player movement, player animations, camera movement, ...
Make a Hack'n'Slash Game in Godot 4 (step by step)
Переглядів 9 тис.Місяць тому
This is the first of many in depth tutorials creating a Hack’n’Slash game step by step in the Godot 4 game engine. There is so much information within this series! Whether this is your first ever game in Godot or you are just trying to learn new ways to go about things this tutorial is going to benefit you tremendously. I wish you the best of luck throughout this series! Link to the entire cour...
You Need To Know These GDScript Functionalities!
Переглядів 16 тис.Місяць тому
GDScript is full of functions, features, and it is made to perfectly fit and work within the Godot engine. Knowing certain GDScript tips can help you improve in the Godot engine and help make workflow so much smoother. Today I wanted to cover all sorts of Godot functionalities. Some are pretty basic but then others are a little more hidden so you may not know about those!! Also some are functio...
The Exciting Future of Godot's Game Engine
Переглядів 36 тис.Місяць тому
Godot is amazing, but what does the future of the game engine look like? Godot is doing things right, the community is so giving, the team is so talented, and this engine is almost a game developer's dream. I’ve been using it for around 4 years now, and I’ve been keeping up with all the news surrounding Godot. In this video I wanted to give my opinions on the future and of course I backed up my...
Create a Complete Dialogue System in Godot 4 (step by step)
Переглядів 11 тис.2 місяці тому
Dialogue is so important to the player experience. But Dialogue is complex so I wanted to create this step by step tutorial on how to implement all sorts of Dialogue in Godot 4. We will learn random dialogue, quest system dialogue, and how to create custom styles for our dialogue. This tutorial is everything to know about Dialogue in Godot 4. It uses the Dialogic plug in to go about creating di...
Do you REALLY want to succeed in Game Dev??
Переглядів 4,6 тис.2 місяці тому
Do you REALLY want to succeed in Game Dev??
How to Create PROCEDURAL Generation in Godot 4
Переглядів 21 тис.2 місяці тому
How to Create PROCEDURAL Generation in Godot 4
The 4 MUST Have ADDONS for Godot 4
Переглядів 68 тис.2 місяці тому
The 4 MUST Have ADDONS for Godot 4
INTRODUCTION to AUDIO in Godot 4
Переглядів 3,8 тис.2 місяці тому
INTRODUCTION to AUDIO in Godot 4
How to go From IDEA to Complete GAME (Game Development)
Переглядів 4,5 тис.3 місяці тому
How to go From IDEA to Complete GAME (Game Development)
How to Use SHADERS in Godot 4 (everything to know)
Переглядів 5 тис.3 місяці тому
How to Use SHADERS in Godot 4 (everything to know)
How to Come Up with Unique GAME IDEAS (Game Dev)
Переглядів 10 тис.3 місяці тому
How to Come Up with Unique GAME IDEAS (Game Dev)
Everything to Know about the CAMERA2D in Godot 4 (Full Guide)
Переглядів 7 тис.3 місяці тому
Everything to Know about the CAMERA2D in Godot 4 (Full Guide)
Everything to Know about USER INTERFACE in Godot 4 (Full Guide)
Переглядів 14 тис.4 місяці тому
Everything to Know about USER INTERFACE in Godot 4 (Full Guide)
How to Use CLASSES in Godot 4 (everything to know)
Переглядів 14 тис.4 місяці тому
How to Use CLASSES in Godot 4 (everything to know)
Ways to Better ORGANIZE Your Godot Projects
Переглядів 7 тис.5 місяців тому
Ways to Better ORGANIZE Your Godot Projects
How to Create SAVE & LOAD in Godot 4
Переглядів 10 тис.5 місяців тому
How to Create SAVE & LOAD in Godot 4
How to Use SIGNALS Correctly in Godot 4 (everything to know)
Переглядів 20 тис.5 місяців тому
How to Use SIGNALS Correctly in Godot 4 (everything to know)
BEST & WORST Practices for Godot 4
Переглядів 7 тис.5 місяців тому
BEST & WORST Practices for Godot 4
Everything to Know About PARTICLES in Godot 4
Переглядів 21 тис.5 місяців тому
Everything to Know About PARTICLES in Godot 4

КОМЕНТАРІ

  • @joshuawoodring1697
    @joshuawoodring1697 3 години тому

    Awesome vid, great timing on the release and showing up in my feed was gonna need to figure this out in a day or two haha

  • @arcticblitz9630
    @arcticblitz9630 6 годин тому

    Praying for a LimboAI godot addon tutorial soon! Great tutorial though!

  • @klernny9549
    @klernny9549 12 годин тому

    Hi, you're the first English-speaking UA-camr I've watched. You are very comfortable and interesting!! I am sure that you will achieve a lot in the future. Thanks for your cool guides)) I wish you at the cottage (I am writing from a translator, sorry for the mistakes)

    • @dev-worm
      @dev-worm 12 годин тому

      thank you so much! I am glad they are able to help! Where are you from? If you ever need anything feel free to let me know!

    • @klernny9549
      @klernny9549 Годину тому

      @@dev-worm I'm from Russia, I've always wanted to create my own game, your guides motivate me because everything is very accessible in them

  • @blizzardbg9593
    @blizzardbg9593 13 годин тому

    9:51

  • @jasonwilliams8730
    @jasonwilliams8730 15 годин тому

    👍

  • @mkaks22gamerserise16
    @mkaks22gamerserise16 16 годин тому

    ummm i like this cause i am making game to compete from stardew valley solo and i want to tell first pls not say copy because open world 2 d game making right not stardew valley have always and this tutrioal is really help full

  • @modeme_for_life
    @modeme_for_life 17 годин тому

    I have an idea for a game.. Need a partner in crime

  • @EarlBlack88
    @EarlBlack88 18 годин тому

    Great video !

    • @dev-worm
      @dev-worm 12 годин тому

      thank you I hope it help!

  • @tofidu
    @tofidu 20 годин тому

    Thanks a lot! I used packed scene and got circular reference. This works however it gives a weird "removing a collision object during a callback" mistake in console.

  • @teddybear_lost
    @teddybear_lost 20 годин тому

    Great video 👍

    • @dev-worm
      @dev-worm 12 годин тому

      thank you! I hope it helped!

  • @FlippyFloppz
    @FlippyFloppz 20 годин тому

    I need this tutorial! Thank you for making this!

    • @dev-worm
      @dev-worm 12 годин тому

      thank you! I hope it was able to help!

  • @BoOm_5623
    @BoOm_5623 День тому

    Bro can you make a tutorial on how to make mobile joystick or controls?

  • @MRbRo630
    @MRbRo630 День тому

    Why is my character not dying it is not printing the damage taken

  • @candace219
    @candace219 День тому

    This is a great tutorial, it really helped me get going! I also really appreciate how you explain why you choose to do something. One question, I've noticed that even if I'm not in the chat area, the dialogue box will still trigger. I also noticed (although maybe I missed it) that we never actually used the function "chat detection area entered/exited" and I'm confused on how I would use it anyway (what would go in the body? the player, or the dialogue collision shape, or something else?

  • @Kilogya
    @Kilogya День тому

    I'm migrating a project developed in Godot 3.x to 4.x and I'm struggling with changing scenes right now. It works sometimes and other times it fais to load anything. I tried the load() method and the change_scene_to_file() method and both result in no scene being created in the tree. I've read the docs and looked around for my issue but I can't find a fix for it. Maybe it's the way I'm changing my scene or somehow the point in which I try to change it but it's not working very well and I'm a little bit frustrated.

    • @Kilogya
      @Kilogya День тому

      And I made a level loader and builder based on the tilesets and tilemap systems from godot 3 so that's already frustrating enough as is.

  • @user-yr3bu2om1o
    @user-yr3bu2om1o День тому

    Well thank you, i watch this all. This is easy mechanics, but looks good for beginner

    • @dev-worm
      @dev-worm День тому

      thank you so much!! goodjob!

  • @crazy-zai3613
    @crazy-zai3613 День тому

    mine attacks once and stops , but i changedit a lil bit now it spam attacks even when am not there,how to make it stop once player leaves area

  • @ChristianIce
    @ChristianIce День тому

    That was pure gold. Thank you.

    • @dev-worm
      @dev-worm День тому

      thank you! glad it helped!

  • @MrZalmamea
    @MrZalmamea День тому

    Hey DevWorm! thank you very much for all of your videos! You helped me a lot with my project for one of my courses! Could you maybe bring a video on enemy drops and the use of healing items? That would be an amazing extension to the hack&slash game!

    • @dev-worm
      @dev-worm День тому

      you are so right!! Ill look into it soon! thanks for letting me know!

  • @Kyle-hb1go
    @Kyle-hb1go День тому

    how do i add the animation?

  • @oddpenguin8996
    @oddpenguin8996 День тому

    you have no idea how much I appreciate how concise this video is

    • @dev-worm
      @dev-worm День тому

      thank you! I am so happy to hear that!

  • @CashsCoffee
    @CashsCoffee 2 дні тому

    Hey DevWorm! I love your stuff. Your videos helped me grasp a lot of concepts as a beginner in Godot. I’ve been working in the engine for 2-3 months now and away from UA-cam tutorials for a while - focusing on the Game Programming Patterns book by Robert Nystrom. I’m planning to binge your videos soon to take my understanding of how to *really* work in Godot to the next level. I already have a list of your videos that look really good, but I was wondering if you had any personal favorites or ones you think stand out? Thanks!

    • @dev-worm
      @dev-worm День тому

      I personally love the full series!! as they walk through the entire creation process of the game and go over so many fundamental features you need to know and they are unedited so when errors happen we debug together and you end up learning a lot so personally I recommend the "How to Create an RPG game in Godot 4" and it gets really good feedback as well! if you come across any issues while following along with the series just let me know and Ill be here to help!

    • @CashsCoffee
      @CashsCoffee День тому

      @@dev-worm awesome! thank you. looking forward to starting it tomorrow

  • @SixFlickz
    @SixFlickz 2 дні тому

    Can you make a click grapple system for godot 4

    • @dev-worm
      @dev-worm День тому

      ill look into it! thanks for letting me know!

  • @Ceisri
    @Ceisri 2 дні тому

    all it does is crash my game

    • @dev-worm
      @dev-worm День тому

      really? are you getting any errors?

  • @vptmgnt
    @vptmgnt 3 дні тому

    People seem to have trouble with the code Here are some solutions I came up with in case you are getting the same issues: My scene played, but crashed right away I changed var anim = $AnimatedSprite2D To var anim = $CollisionShape2D/AnimatedSprite2D Identations are crucial as well, make sure your code is properly nested

    • @dev-worm
      @dev-worm День тому

      thank you so much for pointing this out! paths to nodes seem to cause trouble sometimes with new developers

  • @bloodcc5168
    @bloodcc5168 3 дні тому

    thank you it is a really quick tutorial that save a lot of time

  • @sean8599
    @sean8599 3 дні тому

    Question: So I made the map and im trying to test it out but for some reason, it still shows the gray default instead of the map. Any idea on how to fix?

    • @k4t086
      @k4t086 12 годин тому

      press f6, this worked for me

  • @Exodeon
    @Exodeon 3 дні тому

    Why create a big polygon instead of applying colliders to tiles ? You will need to modify it if you change the map layout

  • @ZachGames-yp6om
    @ZachGames-yp6om 3 дні тому

    sorry for commenting a whole year later, but i have a problem that needs to be fixed, i can't collide with anything, i tried using the move_and collide script, but it didn't work, how would i make it work?

    • @dev-worm
      @dev-worm День тому

      do you have a collisionshape2d within the scene? you will still beable to collide with the environment even with move and slide as long as all the objects including the player have a enabled collisionshape2d!! hope this can help! if not let me know!

  • @panpan6014
    @panpan6014 3 дні тому

    Hey everyone, as many, impossible for me to came back from cliffside... like there was no collisionbox ... I tried tot remove the exit body connection ... but still not working ... a bit of help ... it drive me mad !

  • @-zelkoto-
    @-zelkoto- 3 дні тому

    Im having some troubles with the player movement cant go up or down.

  • @Exodeon
    @Exodeon 3 дні тому

    You can add a parent Node2D to the Marker2D and make this node look_at the mouse instead of the marker, and then place the Marker2D on the bow, to make the arrows being shot from the bow and not from the center of the player

  • @fckuyt3160
    @fckuyt3160 4 дні тому

    What about critter crosser?

  • @Dracossaint
    @Dracossaint 4 дні тому

    I'm still going boss, i plan to keep going on and on. I thank you for your encouragement :)

    • @dev-worm
      @dev-worm День тому

      goodjob bro! I am so proud of you! keep going and if you ever need anything just let me know!

  • @daviviana8016
    @daviviana8016 4 дні тому

    Is there any reason why you use AnimatedSprite2D instead of AnimationPlayer?

    • @dev-worm
      @dev-worm День тому

      no main reason! the only reason is for personal preference as I just think it is easier to use the animated sprite as it keeps everything in one location sense the animations we are creating here arnt too complex!

  • @panpan6014
    @panpan6014 4 дні тому

    Hey everyone ! for those who can't deal damage to the slime, check out if your player and your slime are on the same layers (layer 2) in the inspector panel ! It just took me to re-check everything to find the solution !!! And by the way, thanks @DevWorm for the great tutorials for beginners, it's so super awesome !

  • @kidboy33
    @kidboy33 4 дні тому

    I’m having trouble with the attack animations. The animations are all normal until I attack, and the attack animation plays (in right orientation) but after it plays the idle animation won’t restart. It just sits at the last frame of the attack animation. Then if I move it does the move animation, and then it I stop again the move animation continues instead of the idle animation. Ideas?

  • @GMarquesVII
    @GMarquesVII 4 дні тому

    thank you so much bro!

  • @fenix1sabean326
    @fenix1sabean326 4 дні тому

    Why is the slime running away?

  • @Tetravalence1
    @Tetravalence1 4 дні тому

    I felt that yawn 32:37

  • @fenix1sabean326
    @fenix1sabean326 4 дні тому

    The slime is running away from me why?

  • @Exodeon
    @Exodeon 4 дні тому

    Much cleaner way to handle animation with diagonals : func play_animation(direction): if player_state == "idle": $AnimatedSprite2D.play("idle") if player_state == "walking": var cardinal_direction = "" if direction.y > 0: cardinal_direction += "s" elif direction.y < 0: cardinal_direction += "n" if direction.x > 0: cardinal_direction += "e" elif direction.x < 0: cardinal_direction += "w" $AnimatedSprite2D.play(cardinal_direction + "-walk")

  • @toqorange548
    @toqorange548 4 дні тому

    Will you go over how to do screen shake and freezing the scene when hitting the enemies? Thanks for these, they're really helpful.

  • @ayaanthetechnoguy
    @ayaanthetechnoguy 5 днів тому

    I am a child self learner of coding and this is been a great and easy kick start for me

  • @TheGamingMilk
    @TheGamingMilk 5 днів тому

    I know it’s been a year since the video released but what if they’re errors and it doesn’t work no matter what you do

  • @nasshor0135
    @nasshor0135 5 днів тому

    That Is cool. Im making game similar to Loop hero i have algoritm to random Loop Path but problem is my Loop Path Is not Loop cuz it never connect to close loop, And in now lost,

  • @SamuTheFrog
    @SamuTheFrog 5 днів тому

    One thing ive learned, is even if you don't understand something, keep doing it. Eventually it will click. Exposure strengthens connections.

  • @SamuTheFrog
    @SamuTheFrog 5 днів тому

    I learned python via using qtile on linux and configuring it and modifying it over the years.

  • @user-kr1po2zi3q
    @user-kr1po2zi3q 5 днів тому

    For me 0.5 didnt work and i had to change the numbers to 1 for the animations to play

  • @boanediggadukabberst5380
    @boanediggadukabberst5380 5 днів тому

    Everytime i get an Error can't use store_var on a null instance Something Like that