PRZESZKODY - KOD GRACZA

 avatarKandif
swift
14 days ago
251 B
51
Indexable
Never
extends CharacterBody2D

@export var speed = 200

func get_input():
	var input_direction = Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
	velocity = input_direction * speed
	
func _physics_process(delta):
	get_input()
	move_and_slide()