AudioCueSound
Inherits: PopochiuAudioCue
Description
A PopochiuAudioCue subtype for playing sound effects.
Methods
| Return Type | Method |
|---|---|
| void | play(wait_to_end = false, position_2d = Vector2.ZERO) |
| Callable | queue_play(wait_to_end = false, position_2d = Vector2.ZERO) |
Method Descriptions
play
func play(wait_to_end = false, position_2d = Vector2.ZERO) -> void
Plays this audio cue. If wait_to_end is true, this function will wait until
the audio clip finishes. If is_2d is true, you can specify
the playback location in the scene using position_2d.
queue_play
func queue_play(wait_to_end = false, position_2d = Vector2.ZERO) -> Callable
Plays this audio cue asynchronously. If wait_to_end is true, this function will
wait until the audio clip finishes. If is_2d is true, you can
specify the playback location in the scene using position_2d.
This method is intended for use inside a queue() sequence of instructions.