KOD PADDLE
Kandif
swift
2 years ago
229 B
111
Indexable
extends CharacterBody2D
@export var speed = 200
func get_input():
var input_direction = Input.get_axis("ui_left","ui_right")
velocity.x = input_direction * speed
func _physics_process(delta):
get_input()
move_and_slide()
Editor is loading...