Discuss Scratch

NotRikku
Scratcher
5 posts

How can you make an AI dodge bullets smart?

Recently, I've been searching, watching videos about AI dodging, and… there were not enough answers I could find that fits my AI into my bullet hell game.

I have coded an AI for my bullet hell game and the AI was too stupid and did NOT last any longer.

Can you please explain on how to make an AI?
upgeering
Scratcher
13 posts

How can you make an AI dodge bullets smart?

Do you have an example of the code so far?
NotRikku
Scratcher
5 posts

How can you make an AI dodge bullets smart?

upgeering wrote:

Do you have an example of the code so far?

Yes, I have. https://scratch.mit.edu/projects/416335538/

Look for
 define dodge (playerIdx) (itemX) (itemY) (itemDistance) 
in the PlayerControllerSprite

Last edited by NotRikku (Aug. 10, 2020 21:42:15)

Powered by DjangoBB