Discuss Scratch

WitheredBonnie767
Scratcher
34 posts

Need Experienced: How to make enemy AI?

zp100 wrote:

whyamialive wrote:

I need an AI to do my homework.
Just, any kind of AI? Well, then there's lots of options. You could make a sprite that constantly chases you. Or, it could chase you most of the time, unless you're bigger or have a power-up or something. A chasing script would be like this:
forever
point towards [sprite v]
move (3) steps
end
And, a running away script would be like this:
forever
point towards [sprite v]
turn cw (180) degrees
move (3) steps
end
Put together, it would be like this:
forever
point towards [sprite v]
if <reason to run away::grey> then
turn cw (180) degrees
end
move (3) steps
end
There's hundreds of ways you could make AI. If you search Scratch for “AI” then you'll probably get a bunch of results.

i need an enemy ai that moves left and right repeatedly for my platformer game
Nezon
Scratcher
1000+ posts

Need Experienced: How to make enemy AI?

guys, stop necroposting. withered bonnie, create your own topic
Dharshan20
Scratcher
4 posts

Need Experienced: How to make enemy AI?

helo i wold like to make a AI for my t'wo player fighting game anyone knw=ow?



Nezon
Scratcher
1000+ posts

Need Experienced: How to make enemy AI?

PLEASE STOP NECROPOSTING!!!

Powered by DjangoBB