Files
EGJ25/addons/guide/triggers/guide_trigger_down.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +02:00

21 lines
718 B
GDScript

## Fires, when the input exceeds the actuation threshold. This is
## the default trigger when no trigger is specified.
@tool
class_name GUIDETriggerDown
extends GUIDETrigger
func _update_state(input:Vector3, delta:float, value_type:GUIDEAction.GUIDEActionValueType) -> GUIDETriggerState:
# if the input is actuated, then the trigger is triggered.
if _is_actuated(input, value_type):
return GUIDETriggerState.TRIGGERED
# otherwise, the trigger is not triggered.
return GUIDETriggerState.NONE
func _editor_name() -> String:
return "Down"
func _editor_description() -> String:
return "Fires, when the input exceeds the actuation threshold. This is\n" +\
"the default trigger when no trigger is specified."