GameMakerHelpBlog

Sunday, November 26, 2006

AI


//argument0=object to check distance and to look at
//argument1=distance
//argument2=object (player)

[code]

if distance_to_object(argument0)

direction=point_direction(x,y,argument2.x,argument2.y)

image_angle=direction

[/code]

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home