14 lines
300 B
GDScript3
14 lines
300 B
GDScript3
|
extends Node
|
||
|
|
||
|
# Add asset here
|
||
|
var RhythmPlayer: AudioStreamPlayer
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
RhythmPlayer = get_node("/root/Control/RhythmPlayer")
|
||
|
self.pressed.connect(button_pressed)
|
||
|
|
||
|
func button_pressed():
|
||
|
# Play chord
|
||
|
RhythmPlayer.stop()
|