Hello.
I have been using Godot to create my own game but the game won't run and I don't know why.
Can you please search through the program (which I copied off a tutorial, I don't know what I'm doing) to see if there are any discrepancies (issues) with it:
extends KinematicBody2D
const UP = Vector2(0, -1)
var motion = Vector2()
func _physics_process(delta):
motion.y += 10
if Input.is_action_pressed("ui_right"):
motion.x = 150
elif Input.is_action_pressed("ui_left"):
motion.x = -150
else:
motion.x = 0
if is_on_floor():
if Input.is_action_just_pressed("ui_up"):
motion.y = -400
motion = move_and_slide(motion, UP)
pass