I just started development for a game iI have to design for school and when. When using gd in the script to make the character move right iI get an error and i need help here is the script
extends KinematicBody2D
var motion = Vector2()
func _physics_process(delta):
extends KinematicBody2D
var motion = Vector2()
func _physics_process(delta):
if input.is_action_pressed(ui.right):
motion.x = 100
move_and_slide(motion)
thisThis is the line that is giving me problems
if input.is_action_pressed(ui.right):
if input.is_action_pressed(ui.right):
and it keeps saying that ui is not declared in the current scope
please help