GameMakerHelpBlog

Thursday, November 30, 2006

AI - Step Towards Player

//argument0=object to check distance and to look at
//argument1=distance
//argument2=speed
//argument3=whether it dodges all instances all=true solid=false
[code]
if distance_to_object(argument0)<argument1 then mp_potential_step(argument0.x,argument0.y,argument2,argument3)
[/code]

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home