You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
337 B
GDScript
13 lines
337 B
GDScript
extends RigidBody2D
|
|
|
|
export var min_speed = 150 # Minimum speed range.
|
|
export var max_speed = 250 # Maximum speed range.
|
|
|
|
func _ready():
|
|
var mob_types = $AnimatedSprite.frames.get_animation_names()
|
|
$AnimatedSprite.animation = mob_types[randi() % mob_types.size()]
|
|
|
|
func _on_VisibilityNotifier2D_screen_exited():
|
|
#queue_free()
|
|
pass
|