channel-switcher/move_test.gd
2025-05-11 16:41:21 +10:00

6 lines
155 B
GDScript

extends Node2D
func _process(delta: float) -> void:
var direction := Input.get_axis("ui_left", "ui_right")
if direction:
position.x += direction * 10