KOD PADDLE

Kandif avatar
Kandif
swift
10/02/2023 1:40 PM
308 B
128
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...