hi all,
i just use "on touched object" > play audio "/media/button.m4a"
but on xcode debugger it always play twice (2 time) like picture attached ?
i would like to know why ? and how to solve it
its same problem on ejecta, cocconjs and phonebag
thanks in advance
i believe the touch object can trigger twice on some platforms try unselecting the use mouse input option in the touch object
this happen also for example when i use ...
on start of layout play audio ""
it always loaded it twice
look to the picture
it may be a audio plugin bug
Is this using r203? The audio object was just tweaked - could be a bug...
i use r202 and its lke that since a long of time
Wow, you private messaged me to ask for my opinion, this is the first time I got this, ha ha ha
Ready for the shocker ?
Try to add "Trigger Once while True" somewhere in this code of yours, best if on the condition that calls the sound in the first place.
You are welcome.
Develop games in your browser. Powerful, performant & highly capable.
Wow, you private messaged me to ask for my opinion, this is the first time I got this, ha ha ha Ready for the shocker ? Try to add "Trigger Once while True" somewhere in this code of yours, best if on the condition that calls the sound in the first place. You are welcome.
same thing ... always load twice
Alright, then use this SURE WILL WORK technique.
Assign a tag to this sound you are playing.
Before you play the sound, call the stop sound function to stop this tag, so that if it does play twice, only one will leave the speakers.
You are welcome
Alright, then use this SURE WILL WORK technique. Assign a tag to this sound you are playing. Before you play the sound, call the stop sound function to stop this tag, so that if it does play twice, only one will leave the speakers. You are welcome
yes its alternative but not good solution
there is a bug
Ashley
i think its construct 2 problem because with other engine it work with only one load not double
maybe problem is with audio plugin?
We no longer officially support Ejecta, so this will not be investigated. Consider moving to Cordova.