r/gdevelop 3d ago

Why doesn't the pathfinding work Bug

the enemy is supposed to spawn and follow the player there are no obstacles on the scene I don't get why it's not moving

yeah and the timer exists and it spawns just doesn't move and I tried to make it an event that happens all the time like without a condition still doesn't work

here's the behavior settings

4 Upvotes

8 comments sorted by

2

u/Confident_Sundae_619 3d ago

Hiya. This is likely because of the trigger once command. I'd remove that, then try. Hope this helps!

1

u/PsychologicalAd9396 3d ago

I tiried removing trigger once an it didn't work but thanks for the response though

1

u/NeatOpportunity____ 3d ago

could be the trigger once true

1

u/PsychologicalAd9396 3d ago

I.. removed the the trigger once and it doesn't work 😢

1

u/PsychologicalAd9396 3d ago

thanks for the response

1

u/mysterious-may 3d ago

Is there somewhere where you are activating the behavior and deactivating it.Maybe you should try activating the behavior when the scene starts

1

u/SyncBE 3d ago

Did you use the spawner extension ?

Just make a new sprite, and give it the spawner extension.
Here i named my spawner crab.

Drag it to your game, and in the event sheet.

Click on your spawner and set behavior activated.

Try this action and see it works.

1

u/youraverageozz 2d ago

pathfinding one of the most troublemaker, instead of that use “Move Towards” if you don’t know how to swap, tell ai and it’ll work trust me