I don't understand why it isn't moving, it is in the correct child.
extends KinematicBody2D
export var MOTION_SPEED = 140
var RayNode
func _ready():
set_fixed_process(true)
RayNode = get_node("RayCast2D")
func _fixed_process(delta):
var motion = Vector2()
if(Input.action_press("ui_up")):
motion += Vector2(0, -1)
RayNode.set_rotd(100)
if(Input.action_press("ui_right")):
motion += Vector2(1, 0)
RayNode.set_rotd(100)
if(Input.action_press("ui_left")):
motion += Vector2(-1, 0)
RayNode.set_rotd(100)
if(Input.action_press("ui_down")):
motion += Vector2(0, 1)
RayNode.set_rotd(100)
motion = motion.normalized()+MOTION_SPEED*delta
move(motion)