I am trying to get an enemy to face the player. I found a post that gave an example of how to do this, however, the positions needed to be specific (1, 0): 'right', (-1, 0): 'left', (0, 1): 'down', (0, -1): 'up'.
When I try and calculate the distance to the player with, vec_to_player = (player.global_position - global_position) I do not get a whole number most of the time.
My question is how can I get the specific numbers I need to compare the direction to?