Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need Experienced: How to make enemy AI?
- WitheredBonnie767
-
Scratcher
34 posts
Need Experienced: How to make enemy AI?
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:foreverAnd, a running away script would be like this:
point towards [sprite v]
move (3) steps
endforeverPut together, it would be like this:
point towards [sprite v]
turn cw (180) degrees
move (3) steps
endforeverThere's hundreds of ways you could make AI. If you search Scratch for “AI” then you'll probably get a bunch of results.
point towards [sprite v]
if <reason to run away::grey> then
turn cw (180) degrees
end
move (3) steps
end
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?
- Discussion Forums
- » Help with Scripts
-
» Need Experienced: How to make enemy AI?


