How to Create ENEMY MOVEMENT in Godot 4

  Рет қаралды 4,059

DevWorm

DevWorm

Күн бұрын

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 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: • Godot Hack'n'Slash Cou...
Player Art Link: siviovi.itch.io/dacian-warrio...
Background / Terrain Art Link: zamcham.itch.io/pixel-art-til...
Bat Enemy Art Link: eduardscarpato.itch.io/bat-an...
Toxic Frog Enemy Art Link: eduardscarpato.itch.io/toxic-...
Help Support DevWorm!!! (Patreon): patreon.com/DevWorm
Chapters:
0:00 Intro
0:38 Enemy Scene Setup
1:30 Enemy Animations
4:58 Randomized Enemy Movement
15:24 Player Chase Movement
20:35 Enemy Only Collisions
23:49 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

Пікірлер: 51
@jeffclark4649
@jeffclark4649 Ай бұрын
Hey DevWorm, keep doing what you're doing. These tutorials are really helpful and I'm sure I don't speak for myself when I say they are greatly appreciated.
@dev-worm
@dev-worm Ай бұрын
thank you! it means the world to me! glad they are helpful!
@gamingdragon6165
@gamingdragon6165 Ай бұрын
I agree with this guy. I really cannot wait for the next vid
@gamingdragon6165
@gamingdragon6165 Ай бұрын
@@dev-worm when will the next vid come though?
@wabsastudios
@wabsastudios Ай бұрын
@@dev-worm I always want to make a Pokémon like will you ever make one?please do
@JiKayPh
@JiKayPh 15 күн бұрын
Nice! Looking forward to the next vids!
@dev-worm
@dev-worm 15 күн бұрын
thank you!! coming soon!
@buzzbuzz20xx
@buzzbuzz20xx Ай бұрын
Awesome !!! glad to see the next part is out
@dev-worm
@dev-worm Ай бұрын
thanks!! hope it helps!
@Pabloparsil
@Pabloparsil Ай бұрын
Protip: arrays have a .pick_random method! (I didn't know this but I figured there had to be a function for this). Hope it helps!
@dev-worm
@dev-worm Ай бұрын
ah thanks!! that is super helpful!
@PollyCot
@PollyCot Ай бұрын
Struggling hard with AI for my game but these give me a shimmer of hope.
@sammywn3622
@sammywn3622 Ай бұрын
Loving your work! Just a suggestion for the bat wander function, rather than adding to its velocity you could use lerp from velocity to a new velocity so that you gradually change between the new velocities but can’t infinitely gain speed in any direction. Code would be something like: lerp (velocity, speed * direction, delta).
@dev-worm
@dev-worm Ай бұрын
very good point! thank you! this passed right over me! so thank you
@loyogamestv544
@loyogamestv544 Ай бұрын
Your explanation is nice. I hope you can explain how the player rides a horse and picks up weapons from the ground😊
@Ironpants57
@Ironpants57 Ай бұрын
Riding a horse would be a player state or boolean; is_riding:bool. It's much like the weapon equip in an earlier video in the series. You would also need more sprites.
@bradleywood1984
@bradleywood1984 Ай бұрын
@@Ironpants57 That's right. Personally I would use a state machine for all that since the logic can get a little much but you could just as easily use a single script with a bunch of conditonals.
@Mangalify
@Mangalify Ай бұрын
Hey DevWorm, I learned From You To Much! but can you make a tutorial about export game to android 8 in godot 4 becuase i saw a lot of videos and cant do it😢
@neptun3189
@neptun3189 Ай бұрын
heck yes dude, heck yes
@dev-worm
@dev-worm Ай бұрын
hope it helps!! thanks!
@tnekkGD
@tnekkGD Ай бұрын
awesome tutorial, now I'm just waiting for you to upload the movement of the frog because I'm making a game with the same concept of this and i can't make my own code for the enemy movement, so i need your help... and btw i subbed to your channel
@dev-worm
@dev-worm Ай бұрын
frog is coming soon!! I'd say around episode 6... so about a week from today!! I hope it ends up being very helpful for your project!!
@htosh3837
@htosh3837 Ай бұрын
2 +2 = 4 - 1 = 3 quick maths
@derDooFi
@derDooFi Ай бұрын
44 long and a 38, too, that’s 82 we’re doing the maths
@gaborszafner9662
@gaborszafner9662 Ай бұрын
I genuinely feel like you have the most varied topics on Godot 4 on the platform. You have a video for everything. Only if you could talk 20% slower ^^ as a non-native speaker I have to keep going back. But love your videos a lot, really. Thanks for these guides.
@dev-worm
@dev-worm Ай бұрын
thank you so much!! it truly means the world!! I am sorry about the speaking thing!! I really do apologize and I will take note for the future! but if you ever cant understand something then please just let me know!
@StepTheGlow
@StepTheGlow Ай бұрын
broo you can use caption it helps out a ton except when mrbeast talks too much the youtube crash--uhadahdijihia............."THIS COMMENT WAS DELETED BY KZbin"
@NocturnalPenguin
@NocturnalPenguin Ай бұрын
You are awesome! Would it be possible to explain the process of how you let the bay access the player’s position? I saw that you had a global script and perhaps I missed it.
@bradleywood1984
@bradleywood1984 Ай бұрын
Basically he made the player body global so that the bat script could use it. You need to go into the player script and initialize the player as self in the ready function. Then, you can call the player's body inside the bat script (or anyone else!) that you need it.
@itsME-dc4vm
@itsME-dc4vm Ай бұрын
bro is my saviour ;D
@dev-worm
@dev-worm Ай бұрын
haha! glad it was helpful!
@ErenyeagerO_O
@ErenyeagerO_O Ай бұрын
Awesome 👍😎, and finally u still didn't scale Ur editor which makes hard to see what U exactly doing 😂❤❤❤
@dev-worm
@dev-worm Ай бұрын
so sorry! thanks for reminding me!! I just wrote this down on a sticky-note and Im gonna leave it on my keyboard so I remember! thanks!
@jasonwilliams8730
@jasonwilliams8730 Ай бұрын
👍
@StepTheGlow
@StepTheGlow Ай бұрын
ah can you help me it's been on my mind lately there's a game named "Swordigo" can you make a "tiny little bit" tutorial on how to make enemy slashing movement because I want similar movement and "enemy beating is fun" experience! thanks for reading!!!
@dev-worm
@dev-worm Ай бұрын
Ill start looking into it!! thanks for letting me know!
@StepTheGlow
@StepTheGlow Ай бұрын
@@dev-worm thanks buddy!!
@stormingelysium1996
@stormingelysium1996 23 күн бұрын
It made me laugh when we first give our bat movement and mine flew straight up, then suddenly veered off and flew off the side and never came back : p
@dev-worm
@dev-worm 22 күн бұрын
haha did the little bat run away... how did everything come out in the end??
@justpietro2186
@justpietro2186 Ай бұрын
Those enemies also works on top down games right?
@dev-worm
@dev-worm Ай бұрын
yes of course!! maybe just make the speed a little lower
@bleunny
@bleunny 11 күн бұрын
Why is Vector2 is not working for me ??
@dev-worm
@dev-worm 11 күн бұрын
are you getting any errors?
@gryzman
@gryzman Ай бұрын
there's a function that picks random value, pick_random()
@dev-worm
@dev-worm Ай бұрын
yes! sorry about that! I could've saved a line of code!! didnt know this was a function! so thanks for letting me know!
@user-vd6fh5ng3v
@user-vd6fh5ng3v Ай бұрын
what is topic of next video
@dev-worm
@dev-worm Ай бұрын
the next tutorial will release in 3 days from now!! It is a huge tutorial and will cover combat!
@tawfitawfik
@tawfitawfik Ай бұрын
First comment 🎉🎉🎉
@dev-worm
@dev-worm Ай бұрын
🎉thanks
Create Complete Player ANIMATIONS in Godot 4 (step by step)
28:20
Create a Complete COMBAT SYSTEM in Godot 4 (step by step)
1:00:09
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 17 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 29 МЛН
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 30 МЛН
Tutorial: How to create melee attacks using AnimatedSprite! (Godot Engine 3.2)
17:13
AntiDev, Godot Engine Tutorials & Analysis
Рет қаралды 55 М.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 412 М.
Full Project Zomboid Mod Tutorial - Start to Finish
2:32:07
W. Patrick
Рет қаралды 36 М.
13 ADDONS to SPEED UP your game creation in GODOT!
11:23
MrEliptik
Рет қаралды 101 М.
This Godot 4 Scene Manager Does it ALL
28:50
Bacon and Games
Рет қаралды 19 М.
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 997 М.
In depth TILEMAPS Guide for Godot 4.2
30:33
Cashew OldDew
Рет қаралды 4,5 М.
The Internet Played My Game (and it did not go well)
9:27
advancenine
Рет қаралды 192 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 17 МЛН