mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
12 lines
261 B
GDScript
12 lines
261 B
GDScript
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()
|