godot-plateformer/_game/DemoScript.gd

8 lines
135 B
GDScript

extends Node2D
var s := 1
func _unhandled_input(event: InputEvent) -> void:
if event.is_action("ui_down"):
Engine.time_scale = .1