extends Spatial
# Oyuncunun hareketini izle
func _process(delta):
var speed = 5
if Input.is_action_pressed("ui_right"):
translate(Vector3.RIGHT * speed * delta)
if Input.is_action_pressed("ui_left"):
translate(Vector3.LEFT * speed * delta)
if Input.is_action_pressed("ui_up"):
translate(Vector3.FORWARD * speed * delta)
if Input.is_action_pressed("ui_down"):
translate(Vector3.BACK * speed * delta)
undefined
wortex
@wortex
Posts
Wortex