Random Pathing Patrol Update

Update 

After working on various different ways, the original way it was set up was difficult to work with.  The problem overall is the lack of controlling where the AI will be walking.  Originally the AI was using a random location system which was too sporadic.  I then tried it with an update to make it "patrol" which allowed for more control which worked more efficiently than the random location, plus I can allow more control on the points for movement but it'll always go in a set sequence.


After trying various different ways of making the patrol become random, we figured out a way that made it more controlled and less sporadic but it's no way perfect.  The above video and the video in a previous post shows the development but at the same time debugging of the AI.

Positive

The AI is now random which is what is wanted, it now moves randomly between the points set and although it is needed to be looped initially, it is working after the loop is done.  I have setup a print text whilst testing to inform me of the point that the AI is currently walking to if needed whilst programming and debugging.

Negatives

The problem seen is that although it is randomised, it is "looping" still and specifically going to certain points more than others.  I cannot understand how to make the AI move to the points more fairly than stick to certain ones more often than others.

Another thing that i'm sure of is how this patrol system is going to effective with the footprint system.  Although i'm unsure how effective it's going to be in converting it to pick up the footprints and using it as possibly a stimuli point.  Hopefully making it work will be useful.

Overall, it's good that it's mostly doing what is needed, next is to make it work with footprints then boom, the overall enemy mechanics will be complete.

EDIT: Update 26/11/17 - After some thinking and more editing. I have made the patrol more random and less stalling from watching it debug for a duration of time.  It does seem to be more random and less going to the same 3 patrol points which is awesome!

Comments

Popular Posts