This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/Scripts/SoundPlayerScript.gd

18 lines
453 B
GDScript3
Raw Permalink Normal View History

2022-06-18 13:05:48 +02:00
######################
### Jessist Script ###
######################
# This script is part of Jessist
# Jessist is licensed under GNU GPLv3
#
# This script manages all sound players
extends AudioStreamPlayer
func startSound(delay):
gameController.logCall("SoundPlayerScript","startSound",delay)
yield(get_tree().create_timer(delay),"timeout")
play(0)
func stopSound():
gameController.logCall("SoundPlayerScript","stopSound",null)
playing = false