Hello! I’m trying to use the MoveToward function to move toward the player, but I want the speed that it moves along x and the y axis to be different. As far as I can tell, you can only apply one speed. Anyone have any idea how I can adjust the speed for an individual axis?
This is what I have so far:
transform.position = Vector2.MoveTowards(transform.position, new Vector2(playerPosX, playerPosY), speed * Time.deltaTime);