Hi, this is my first solo project in Godot 4.1, but I cannot find any working 2D Isometric movement based tutorials.
This is the closest I could find to move my player in the isometric positions but does not run.
Any help would be appreciated.
`extends CharacterBody2D
const speed = 100
var motion = Vector2()
func cartesian_to_isometric(cartesian):
var screen_pos = Vector2()
screen_pos.x = cartesian.x - cartesian.y
screen_pos.y = cartesian.x / 2 + cartesian.y / 2
return screen_pos
func fixed_process(delta):
var direction = Vector2()
if Input.is_action_pressed("move_up"):
direction += Vector2(0,-1)
elif Input.is_action_pressed("move_down"):
direction += Vector2(0,1)
if Input.is_action_pressed("move_right"):
direction += Vector2(1,0)
elif Input.is_action_pressed("move_left"):
direction += Vector2(-1,0)
motion = direction.normalized() * speed * delta
#move(motion)`