JeanSwamp
Member
Hello,
I'm trying to get some sort of flying enemy charge towards the player. I'm moving the enemy towards the player like this:
Now, what's a good way to stop this on a timer, or when reaching certain point to make the enemy leave this charge state smoothly.
The idea is to allow the player to be able to dodge the charge by moving, since the enemy will charge towards the current player location in the moment the charge began.
Thanks
I'm trying to get some sort of flying enemy charge towards the player. I'm moving the enemy towards the player like this:
Code:
hsp = lengthdir_x(6,point_direction(x,y,_playerx,_playery))
vsp = lengthdir_y(6,point_direction(x,y,_playerx,_playery))
The idea is to allow the player to be able to dodge the charge by moving, since the enemy will charge towards the current player location in the moment the charge began.
Thanks
Last edited: