Steps dans le son

This commit is contained in:
MarcEricMartel
2022-10-11 16:32:48 -04:00
parent 14e14d5929
commit c3a32c5176
15 changed files with 181 additions and 6 deletions

16
Steps.gd Normal file
View File

@@ -0,0 +1,16 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
onready var Steps = [ $Step1, $Step2, $Step3, $Step4 ]
var rng = RandomNumberGenerator.new()
# Called when the node enters the scene tree for the first time.
func _ready():
rng.randomize()
func playStep():
Steps[rng.randi_range(0,3)].play();