|Attention||Topic was automatically imported from the old Question2Answer platform.|
well, i dont know why but move_and_slide are wrong, anyone can help me?
const UP = Vector2(0,-1)
const BOOST = 200
const GRAVITY = 10
var motion = Vector2()
pass # Replace with function body.
motion.y += GRAVITY
if Input.is_action_just_pressed("ui_accept"): motion.y =-BOOST motion = move_and_slide(motion,UP)