Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Advanced Computer AI
- M3L6H
-
Scratcher
26 posts
Advanced Computer AI
Any tips on how to make an advanced computer AI? The final goal is to have a npc that can move around and shoot and will make decisions based on how much health it is causing the player to lose and how much health it itself is losing. It will have to be able to target the player, and figure out how to shoot over walls or under them, and how to hide if being shot at, etc.
- eaglgenes101
-
New Scratcher
100+ posts
Advanced Computer AI
I have a start at that in my swordfighter and (unrefined) gunfighter projects. Currently the AI considers how close it is to the opponent(s) and which way it is facing.
It's top-down, though, which suggests that it might not fit with your idea, which sounds like a platformer (or something like that).
If your algorithm is laggy, consider cutting corners (IE using square area boxes, monte carlo algorithms, heuristics). It might make for a slightly stupider AI, but the reduction in lag will be worth it. (And you can always add more if you need.)
It's top-down, though, which suggests that it might not fit with your idea, which sounds like a platformer (or something like that).
If your algorithm is laggy, consider cutting corners (IE using square area boxes, monte carlo algorithms, heuristics). It might make for a slightly stupider AI, but the reduction in lag will be worth it. (And you can always add more if you need.)
- M3L6H
-
Scratcher
26 posts
Advanced Computer AI
I have a start at that in my swordfighter and (unrefined) gunfighter projects. Currently the AI considers how close it is to the opponent(s) and which way it is facing.
It's top-down, though, which suggests that it might not fit with your idea, which sounds like a platformer (or something like that).
If your algorithm is laggy, consider cutting corners (IE using square area boxes, monte carlo algorithms, heuristics). It might make for a slightly stupider AI, but the reduction in lag will be worth it. (And you can always add more if you need.)
Ok. Thx.
- CAA14
-
Scratcher
500+ posts
Advanced Computer AI
Just think through exactly what this A.I. needs to do. Also, consider what obstacles it needs to avoid and the like.
It's a simple concept that creates amazing A.I.
It's a simple concept that creates amazing A.I.

- Discussion Forums
- » Help with Scripts
-
» Advanced Computer AI