Page 1 of 1

Enemies chasing my character

PostPosted: Tue Feb 20, 2007 8:45 pm
by Luke playa
How do i make an enemy follow my character? I guess the MoveTo variable has something to do with it, but how do i use it?

PostPosted: Wed Feb 21, 2007 12:25 am
by Game A Gogo
could do this in draw actor:
Code: Select all
angle=direction(x, y, Player.x, Player.y);//Get the direction the Player is from the enemy
directional_velocity=2;//Speed of the enemy, you may change this

PostPosted: Wed Feb 21, 2007 12:21 pm
by Luke playa
thanks a bunch :o

PostPosted: Wed Feb 21, 2007 10:47 pm
by Game A Gogo
np! ++ points >..>