channel-switcher/base modules/move_test.gd

7 lines
155 B
GDScript3
Raw Normal View History

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