GameMaker: Studio

GameMaker: Studio

View Stats:
need a working civilian AI (more info inside)
right now I have a zombie AI thats working, very simple to make, where the zombie object just runs at the civilian object, but I can not find any way to make the civilian run away, or cannot find any working AI for it.
any help is wanted and appreciated.
< >
Showing 1-2 of 2 comments
zeRqs Sep 14, 2014 @ 2:38pm 
if you want the civilian object to run away from the zombie you coud try to use something like this if point_distance() < "your range" speed = "" direction =""
Boysano Sep 25, 2014 @ 11:16am 
read up on finite state machines to make complex AI broken into simple bits.
So you create one large step event which check each state variable (best set as defined constant) then you can easy set state from any place in code and easily add more and change states for more behaviour. Use scripts so you can easy edit each behaviour as separate script

< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Sep 14, 2014 @ 7:17am
Posts: 2