So I was helped to solve how to move in the rotated direction using Vector2(0, 120).rotated(rotation), however the issue is that I need to change the Vector2 based on if I am moving along the x axis or y axis.
Example distance on x axis is 120 between tiles, distance on y is 105.
Is there a way to move in the direction of the rotation but to check for y or x axis and adjust the Vector2() accordingly? Here is my code thus far.
func _process(_delta):
var curr_pos = the_object.position
if Input.is_action_just_pressed("accelerate"):
the_object.global_position = curr_pos + Vector2(120,0).rotated(rotation)
if Input.is_action_just_pressed("decelerate"):
the_object.global_position = curr_pos + Vector2(-120,0).rotated(rotation)
if Input.is_action_just_pressed("rotate_left"):
rotation_degrees -= 90
if Input.is_action_just_pressed("rotate_right"):
rotation_degrees += 90