Texpand/scenes/Grid/speed_scale.gd
2024-08-17 19:46:21 +02:00

10 lines
261 B
GDScript

extends Node2D
@onready var slider = $Path2D/Slider
func _physics_process(delta: float) -> void:
if not GLOBAL.hasSelectedSpeed:
if Input.is_action_just_pressed("stop"):
GLOBAL.hasSelectedSpeed = true
GLOBAL.currentSpeed = GLOBAL.SPEED.MAX
print()