godot-plateformer/_game/DemoScript.gd

8 lines
135 B
GDScript3
Raw Normal View History

2026-01-01 13:03:35 +08:00
extends Node2D
var s := 1
2026-01-05 17:38:43 +08:00
func _unhandled_input(event: InputEvent) -> void:
if event.is_action("ui_down"):
Engine.time_scale = .1