Can you spare a pointer to a tutorial series please about enemy behavior

Hi, I followed the tutorial from Mr. Sadler on his “Galaga” clone. Unfortunately he ended it before doing an episode on 2D sprite ai. Now I hope you can see my dilema here, searching for enemy ai, or godot ai, or anything like that brings back results on like gemeni and such.

btw, Gemini and Chatgpt both suck when it comes to learning godot.

anyways, I am looking for a tutorial series on writing 2D enemy behaviors in godot 4. Currently my enemies from from top down and shoot randomly. Can someone please just drop a link or some search terms that google won’t confuse with me wanting to make memes? :smiley:

if you are still reading, I realize there are hundreds of ways to do it, but I get very confused when I start reading about all the different ways to use Marker2d, area2d, and path2d and pathfollow2d. I just don’t understand which ones to use and when to use them, or even how to use them together to make galaga style behaviors.

ty.

Did you try this one already?

2 Likes

Thank you,

no he didn’t do it that way. I did my animations using the animatedSprite2D node, and using collision groups. I’m trying to leanr how to use marker2d, path2d, area2d, to make enemies follow different behaviors. I originally started with 3 states, ENTER, MARCH, DIVE. and I experimented with using marker2ds and using path2ds but nothing seems to work right - enemies are always moving in wrong directions, state changes don’t work, etc.. but I have no real guide to follow and no one else seems to use these types of nodes

EDIT: the project link above led me to node states, which I think is the piece I was missing. :slight_smile:
I’m following along with this video rn: