gd: added input addon

This commit is contained in:
2025-05-27 19:20:46 +02:00
parent d8a1604af9
commit c8d8c7ec25
683 changed files with 21608 additions and 2 deletions

View File

@ -0,0 +1,15 @@
extends Node2D
@export var lifetime_seconds:float = 5.0
var _remaining_time_seconds:float = 0
func _ready():
_remaining_time_seconds = lifetime_seconds
func _process(delta:float) -> void:
_remaining_time_seconds -= delta
if _remaining_time_seconds <= 0:
queue_free()
return
modulate.a = _remaining_time_seconds / lifetime_seconds