You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
18 lines
211 B
GDScript
18 lines
211 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)
|