7 lines
163 B
GDScript
7 lines
163 B
GDScript
extends Area2D
|
|
|
|
func _ready() -> void:
|
|
EventBus.heart_beat.connect(_on_heart_beat)
|
|
|
|
func _on_heart_beat(tempo: float):
|
|
$AnimationPlayer.set_speed_scale(tempo)
|