mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
17 lines
210 B
GDScript
17 lines
210 B
GDScript
extends RigidBody2D
|
|
|
|
# Member variables
|
|
var timeout = 5
|
|
|
|
|
|
func _process(delta):
|
|
timeout -= delta
|
|
if (timeout < 1):
|
|
set_opacity(timeout)
|
|
if (timeout < 0):
|
|
queue_free()
|
|
|
|
|
|
func _ready():
|
|
set_process(true)
|