Godot Version
4
Question
I need to make a screamer in a clicker so that when the random value of clicks is clicked, then at random moment the screamer should appear with sound for 1 s. It turns out that I need to make 2 scene and switch it with sound or how to implement it better
extends Node2D
var clic = 0
func _ready() -> void:
$Labelcchet.text = "СЧЁТ: " + str(clic)
func _on_touch_screen_button_pressed() -> void:
$TouchScreenButton/PisseimMundOnlineAudioConverter.play()
clic += 1
$Labelcchet.text = "СЧЁТ: " + str(clic)