So I’ll got the dog moving at the moment using a series of Point Objects that the dog wants to travel to. I’m guessing the way I will do the AI is about the same way I’m guessing that Metal Gear Solid did it. Assign the guards their own point network to transverse, but when Snake (or the character) is found, use all points on the map.
This means all Map Objects will need to have their points set up. I’m hoping I can do that programmatically. If I say all my “objects” in the game that AI and the character have to walk around are all square, all the points on the “Point Map” object could then be created by these squares. Something like this:
* * *
-------------------------
| |
* | | *
| |
|______________|
* * *
Where * = an auto generated point.
Might be good, but I will have to say which points won’t be created, as I could have boxes close to each other, or big boxes for the sides of levels or rooms. Say I had a square crate next to a wall:
* * |
_______|
| |
* | |
|______ |
|
* *
I’d need points set out like that, which I think can be done using the box creates points method. I’ll have to try it out this weekend!
Comments