A little problem with playing sound - it disappears
DaveGWelsh
Member Posts: 60
Hi all,
So, I have a problem with sound at the moment.
In my game, a sound is called a number of times when an event happens. However, after it has been called a few times (maybe 5 or 6), it is never played again, even though the on-screen visual effect is displayed. If I reset the scene, it works again, but of course, I can't do this in the game
Any thoughts/ideas/suggestions?
Cheers in advance!
So, I have a problem with sound at the moment.
In my game, a sound is called a number of times when an event happens. However, after it has been called a few times (maybe 5 or 6), it is never played again, even though the on-screen visual effect is displayed. If I reset the scene, it works again, but of course, I can't do this in the game
Any thoughts/ideas/suggestions?
Cheers in advance!
Comments
On the actors or when that event is called I add a rule that says "change attribute soundplay to 1" and on the otherwise I say "Change attribute soundplay to 0"
Then on the scene make a rule that says, when soundplay = 1, play sound.
If anyone has any suggestions, that would be awesome. The game is really small, so I seriously doubt its a memory issue.
The sounds just cut out.
Can sounds be played to often? That sounds like a really noob question, I know, but i'm trying to go through all possibilities.
Hmmmm
https://forums.gamesalad.com/discussion/57827/possible-bug-sound-effects-cutting-out
It's not ALL sounds that is being affected. it's only those which are attached to actors that are called at certain times. Other sounds, which are just running as normal are not affected. However, those which are attached to actors which are called depending on an attribute are switched off after a while.