matrixreal's Forum Posts

  • if we use

    on start of layout > execute javascript "var audio = new Audio('tap.m4a');"

    execute javascript "audio.play();"

    it plays one time

    then iam sure that is audio plugin problem

    and it play all the sound twice at the same time

  • Problem Description

    when using audio plugin on all platform (ejecta,cocoonjs, phonegab etc...)

    when set action to play audio it play it twice (double)

    Attach a Capx

    NEW PROJECT > ADD AUDIO PLUGIN

    on start of layout > play audio "tap.ogg" or "tap.m4a" (tap.ogg for example)

    Steps to Reproduce Bug

      NEW PROJECT > ADD AUDIO PLUGIN on start of layout > play audio "example.ogg"

    Observed Result

    Operating System and Service Pack

    WINDOWS 7 SP1 - OSX YOSEMITE 10.10 VMWARE

    Construct 2 Version ID

    203

    the prouf

    if we create new project without any actions and or audio plugin

    and export to ios (ejecta, cocconjs, phonegab etc ...) and add the following javascript call into index.js to play audio (just for test)

    var audio = new Audio('media/tap.m4a');

    audio.play();

    it plays one time whereas it plays twice with audio plugin

  • what are local storage actions instead of webstorage ?? (replacement ) for the

    if Local Key "......" exists >>>>> set variable to webstorage.LocalValue('......')

    and

    set LocalKey ".........." to variable????

    thanks ?

  • Ashley the data I store in WebStorage if only from arrays, so I'm thinking of a way to migrate.

    When the game start load array data from webstorage and then destroy localkey and save data to Local Storage.

    Next time when game start again - if localkey does not exist look and load data from Local Storage.

    That this sounds about right?

    great idea

  • are you using physics or no ?

  • any help please ?

  • > Yeah, accidentally used a new JS feature which Chrome supports but Firefox doesn't yet. It's already fixed for the next beta.

    >

    It is really depressing to hear this, Firefox was once the big game of the town.

    And now, Firefox doesn't play many of the webGL features and now this...

    If it is not for Firefox's ability to download videos, I would have stop using firefox completely by now.

    what is local storage actions instead of webstorage ?? (replacement ) for the

    if Local Key "......" exists >>>>> set variable to webstorage.LocalValue('......')

    and

    set LocalKey ".........." to variable

    thanks ?

  • 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?

  • can i use local storage for saving highscore ?

  • the problem is not ios 8.X

    the problem is you have to update google admob sdk and update the plugin because they change the call for banner and interstitial

  • hi,

    i see that by using the official plugin

    1-for phonegab it automatically restore the purchase when the game launch !!!

    why ?

    and is it possible to delete this action (restoring the iap on start)

    2-by the way the official plugin is made for all platform and i just need it for phonegab ... any way to delete other lines for other platform and keep the plugin working only for phonegap ?

    thanks

  • for saving highscore and load it from local storage i prefer webstorage

    i still dont understand the local storage actions

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • search about cranberry plugin

  • 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