KOD PADDLE

 avatar
Kandif
swift
a year ago
229 B
104
Indexable
Never
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()