We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In my game I use different sounds for enemies.
After a specific time the player is not able to play any new sounds and also the older ones might not finish playing or are interrupted.
is there a way to just clean all the memory from sounds so it can start adding sounds anew?
e.g. after every battle a function can be run that all old sounds are removed?
i also have some predefined sounds in a func, should I remove this, or would this not matter? like:
func playTrapSound() { Sound.play(file: "hitTrap", fileExtension: "mp3", numberOfLoops: 0) }
Any help appreciated!
The text was updated successfully, but these errors were encountered:
I would try creating instances of Sound class instead of using the static methods and see if that will help
Sound
Sorry, something went wrong.
No branches or pull requests
In my game I use different sounds for enemies.
After a specific time the player is not able to play any new sounds and also the older ones might not finish playing or are interrupted.
is there a way to just clean all the memory from sounds so it can start adding sounds anew?
e.g. after every battle a function can be run that all old sounds are removed?
i also have some predefined sounds in a func, should I remove this, or would this not matter? like:
func playTrapSound() {
Sound.play(file: "hitTrap", fileExtension: "mp3", numberOfLoops: 0)
}
Any help appreciated!
The text was updated successfully, but these errors were encountered: