mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
11 lines
260 B
GDScript3
11 lines
260 B
GDScript3
|
extends RigidBody2D
|
||
|
|
||
|
func _ready():
|
||
|
$AnimatedSprite.playing = true
|
||
|
var mob_types = $AnimatedSprite.frames.get_animation_names()
|
||
|
$AnimatedSprite.animation = mob_types[randi() % mob_types.size()]
|
||
|
|
||
|
|
||
|
func _on_VisibilityNotifier2D_screen_exited():
|
||
|
queue_free()
|