godot_tiny_crate/Script/btn.gd
Harmony Monroe ae64e5d236 spikes work
2020-08-26 16:09:19 -04:00

13 lines
247 B
GDScript

extends Node
# DOWN
func d(arg : String):
return int(Input.is_action_pressed(arg))
# PRESSED
func p(arg : String):
return int(Input.is_action_just_pressed(arg))
# RELEASED
func r(arg : String):
return int(Input.is_action_just_released(arg))