mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
17 lines
203 B
GDScript
17 lines
203 B
GDScript
extends RigidBody
|
|
|
|
const DESPAWN_TIME = 5
|
|
|
|
var timer = 0
|
|
|
|
|
|
func _ready():
|
|
set_physics_process(true);
|
|
|
|
|
|
func _physics_process(delta):
|
|
timer += delta
|
|
if timer > DESPAWN_TIME:
|
|
queue_free()
|
|
timer = 0
|