2021-12-06 22:36:22 +00:00
|
|
|
extends Sprite
|
|
|
|
|
|
|
|
var direction = 0
|
|
|
|
|
2021-12-07 12:18:23 +00:00
|
|
|
func _ready():
|
|
|
|
frame = randi() % hframes
|
|
|
|
|
2021-12-06 22:36:22 +00:00
|
|
|
func _physics_process(delta):
|
|
|
|
global_position += Vector2(direction, 0)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_Timer_timeout():
|
|
|
|
queue_free()
|