Basically I’m making turn-based topdown game, and I need to get Boss (enemy) move in player direction.
I used
transform.position = Vector3.MoveTowards(transform.position, destinationPosition, moveSpeed * Time.deltaTime);
so far, but it has a flaw - it stops at player location. Instead I want it to keep moving in the same direction regardless of reaching player (basically to overshoot player location). Movement is done with moveset functions, each of them has it’s own moves and conditions to stop/keep moving. One I’m working now is supposed to move boss X amount of units alongside vector pointing from original boss position and towards player.
Nice, it somewhat works, but I have problems now adapting it for my code - I need it to pick player position every turn, not just once on startup. And so far my attempts only lead to breaking it.
– NomaddcAight, made it work with my script :) Thanks a lot!
– Nomaddc