AudioCueSound

Extends: PopochiuAudioCue < Resource

Description

Method Descriptions

play

func play(wait_to_end: bool = false, position_2d: Vector2 = "(0, 0)") -> void

Plays this audio cue. If [param wait_to_end] is set to [code]true[/code], the function will pause until the audio clip finishes. You can play the file from a specific [param position_2d] in the scene if [member PopochiuAudioCue.is_2d] is [code]true[/code].

queue_play

func queue_play(wait_to_end: bool = false, position_2d: Vector2 = "(0, 0)") -> Callable

Plays this audio cue. If [param wait_to_end] is set to [code]true[/code], the function will pause until the audio clip finishes. You can play the file from a specific [param position_2d] in the scene if [member PopochiuAudioCue.is_2d] is [code]true[/code].[br][br] [i]This method is intended to be used inside a [method Popochiu.queue] of instructions.[/i]