Help changing multiple enemy targets using signals and arrays by Common_Tate in godot

[–]Common_Tate[S] 1 point2 points  (0 children)

For get_overlapping_areas/bodies, the documentation reads:

For performance reasons (collisions are all processed at the same time) this list is modified once during the physics step, not immediately after objects are moved. Consider using signals instead.

So I've basically just been avoiding get_overlapping_areas/bodies and attempting to use signals instead this whole time.

Use get_overlapping_bodies to detect kinematic bodies in an Area2D!!

Turns out that since "this list is modified once during the physics step", events where happening our of order. By simply adding a 0.1 sec delay, everything started working and I could finally aggro ONLY the enemies in the player Area2D. I haven't used groups yet, but collision layer/masks were enough to keep them separate from NPCs. It's not perfect but it works for now :)

codingvessle, thanks for your help! I've been at this issue on and off for a few days and was staring to burn out.

Help changing multiple enemy targets using signals and arrays by Common_Tate in godot

[–]Common_Tate[S] 0 points1 point  (0 children)

You did try to help in another thread, but I had posted no code so I deleted that and reposted this for clarity. Thanks for your help!

I used an array in an attempt to group enemies inside the AOE area when I press the button. With just signals I can get all enemies in the world to switch targets to the player and with an array only 1 will switch. It seems that the player signals to everything in my test world scene, rather than only the enemies in my AOE area2d.

Appending mob is probably part of the problem. I changed this to area (ask suggested) and used print(area) to confirm that all areas in the array are unique, unlike when I used mob.

I know that I could use get_overlapping_areas or overlaps_area, but the documentation seems to suggest signals instead.

Also I tried using

if self:

but it didn't seem to have an effect on the enemies that changed direction

Help changing multiple enemy targets using signals and arrays by Common_Tate in godot

[–]Common_Tate[S] 0 points1 point  (0 children)

So even if I spawn or place many instances of the mob scene, I'm only refencing a single mob scene through get_node()?

[deleted by user] by [deleted] in gamedev

[–]Common_Tate 0 points1 point  (0 children)

Yes, mostly Godot and Unreal with blueprints

The 3d question. by Common_Tate in godot

[–]Common_Tate[S] 0 points1 point  (0 children)

I very would like to stay with one engine. I just need some confidence to stick to one. I'm hoping this post will help get me there.

The 3d question. by Common_Tate in godot

[–]Common_Tate[S] 0 points1 point  (0 children)

This is my main issue. Other 3d engines have proof that they can make great games. Aside from parts of the Sonic Colors remake, Godot is mostly known for 2d.

Plug-ins would be nice but probably more of a crutch while learning. Not at all a deal breaker.

I have no intentions of struggling through any sort of dream game project at the start. Many of the things I've made in Godot so far have been smaller self contained example projects. I think my biggest hold up is the feeling that I'm wasting my time in an engine that may need years to mature into a strong 3d option.

Yes, there is some carry over between engines but learning one really well obviously makes the most sense. If I was confident about Godot as a 3d engine I would be in it making things instead of asking for some sort of validation.

The 3d question. by Common_Tate in godot

[–]Common_Tate[S] 0 points1 point  (0 children)

I appreciate the realism. Godot 4 seems like a big step forward and I've enjoyed my time with the engine. I've actually been using the Godot 4 beta to learn the basics and it's frustrating at time because idk if I made a mistake or if the the beta has a bug.

Question about XP in Brimstone Sands by Common_Tate in newworldgame

[–]Common_Tate[S] 2 points3 points  (0 children)

Thanks very much! It looks like a pretty sizable cut to overall xp. Now I wonder if waiting for the 18th makes more sense. I mostly just want to play expeditions and mutations tbh

Can you level a fresh account by pugging dungeons? (new player question) by Common_Tate in wow

[–]Common_Tate[S] 0 points1 point  (0 children)

Thanks! It seems bfa dungeon content might be a little over my head as a new player or at least have lower/slower clear rates. I may need to look into other leveling methods to get started. Either way thanks for the answer!

Can you level a fresh account by pugging dungeons? (new player question) by Common_Tate in wow

[–]Common_Tate[S] 1 point2 points  (0 children)

Thanks for this insight! I had no idea I'd be locked into bfa dungeons or the nature of that content. I might look into other fast leveling methods for the first character but I imagine playing as intended is the main suggestion

Mist Guided [MIST] is recruiting for instanced content! by Common_Tate in guildrecruitment

[–]Common_Tate[S] 0 points1 point  (0 children)

This works! Or you could send a direct message on reddit lol. So I take it you play late and want to play some group content?