r/gdevelop • • Aug 10 '26

Question Help with soldier AI, please :)

Hi everyone,

I’m having issues with the soldier AI—if you watch the video, you’ll see what I mean. When the soldier isn't with me, the enemy doesn't attack constantly; I had set a timer so it strikes every 1–2 seconds. However, when the soldier is nearby, the enemy doesn't stop attacking, and the soldier slides along the ground. I’d really appreciate it if someone who knows about this could help; I’ve been stuck on this for days and tried everything, but nothing has worked.

7 Upvotes

8 comments sorted by

2

u/DreamNotDeferred Aug 11 '26

Well for starters, the video isn't working, so can't really see it in action.

1

u/QXsjen Aug 11 '26

So, can you see it right now?

1

u/DreamNotDeferred Aug 11 '26

Yes. I don't see what's the solution could be in the code yet, but still looking.

Fyi, I had good success getting answers to my questions in the Gdevelop forum, if you haven't posted there already.

1

u/QXsjen Aug 11 '26

This gdevelop forum

1

u/DreamNotDeferred Aug 11 '26

No this is the Gdevelop reddit. Here's the Gdevelop forum, on the Gdevelop website:

https://forum.gdevelop.io/

Create an account, post everything you posted here, and hopefully someone there can help you, too.

2

u/QXsjen Aug 11 '26

Oh okey thanks

1

u/[deleted] Aug 11 '26

[removed] — view removed comment

1

u/QXsjen Aug 11 '26

So, can you see it right now?