S
ShuDiZo
Guest
Hi, the problem im having at the currenr moment is. As you've read from the title, saving a moving objects x and y coordinate in that moment as a constant.
I plan to save this coordinate as the enemy objects next location, as it dashes toward that point.
E.g.
Step 1: find player if player exists and player location is in its view but not attack range.
Else step:
If distance is inside the enemy objects attack range, charge = true.
Step 2: if charge is true, enemy saves players location as xx and yy. Then, sets chosen_cord to true and alarm counts down.
Step 3: if alarm <= 0 and charge is true, point_direction(x, y, xx, yy);
If you would help with this, you have my thanks and gratitude.
I plan to save this coordinate as the enemy objects next location, as it dashes toward that point.
E.g.
Step 1: find player if player exists and player location is in its view but not attack range.
Else step:
If distance is inside the enemy objects attack range, charge = true.
Step 2: if charge is true, enemy saves players location as xx and yy. Then, sets chosen_cord to true and alarm counts down.
Step 3: if alarm <= 0 and charge is true, point_direction(x, y, xx, yy);
If you would help with this, you have my thanks and gratitude.