IJCT's Forum Posts

  • Guys, already figured out the problem here, its not a full fix but hey, at least we have sounds now

  • Ok, it works, doing that works but the sound is now really really loud and there is no background music, just effects, well, at least thats better that having no music...hehe thanks a lot man!!!!

    Ashley look, its a construct2 error

    i think apple changed the way they use sounds on safari or something, i will do some experiments on why does the sound effects works but not the music.

  • i have this plugin since 2012, i cant believe how many things have now o.o

    it is safe to rewrite it? cause my game uses it and i dont know if it may crash it if i change it...

  • > weird thing is that my c2runtime is all messed up and weird :/

    >

    > it maybe because of the "minify script"?

    >

    I don't minify. In fact, minifying script leads to major issues with Cordova/XDK in my experience...

    lol i didnt knew that, ok i will test it without minifying...

  • weird thing is that my c2runtime is all messed up and weird :/

    it maybe because of the "minify script"?

  • So you have no "playMusicAsSoundWorkaround" variable in your runtime at all?

    Strange!

    exactly

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • amazing, thanks a lot!!!!

  • >

    > i will test this on my game and see if its works, i export with phonegapp

    > update: couldnt find that line of code in mine file.

    >

    Do you set to use WKWebView when you do the Cordova export?

    yes but it may be because you export for XDK :s

  • Hi guys, well since i love this plugin and looks like Pode is gone, i figure out a way to create our own gestures since the plugin is giving us a JavaScript error message when trying to do it, so i did this custom gesture creator based on the one that Pode did.

    Custom Gesture Creator

    this generator creates a JavaScript line that have to be copy pasted inside the runtime.js file of the original plugin, this lets you create your own gestures.

    LINK: http://vortechstudios.com/gestures/

    //////

    STEPS TO DO IT

    1 - open runtime.js of Unistroke Gesture Recognizer Plugin and go to the line #115

    it should looks like this, here is every gesture's code.

    2 - delete all lines from 120 to 135

    should looks like this now

    3 - open the generator ( http://vortechstudios.com/gestures/ ) and create your gesture, DONT FORGET TO ADD A GESTURE NAME

    AND A GESTURE ID, gesture ID have to be a NUMBER , use 0 if its your firts gesture.

    4 - now just COPY the code that you just generated inside the runtime.js file, it should looks like this

    DONE, now the plugin recognize your gesture, if you want to add more gestures, just put the gesture code in the next line and with a different ID.

    i did this for the people that doesnt know any of code or are afraid of touching code, since i love this plugin and sadly the original creator isnt online anymore.

    hope you guys like it and tell me if you find any problems creating your own gestures, have fun!

  • Post a capx I guess.

    Pode is probably gone for good.

    i figured out a way to create my own gestures, the bad thing is that we have to change the code by hand, good part is that i change a little bit the gesture generator to create the code needed just to copy paste our gestures to the plugin's code. i will be uploading the generator and a mini guide of how to do it right here when im done with it

    i dont think it will be more than 3 steps.

  • Just copy the text from the demo:

    https://dl.dropboxusercontent.com/u/666 ... plate.capx

    the problem is that whenever i tried to create my own gestures using the plugin's action inside c2 it gives me a javascript error

    i know i can edit the code by hand and thats a way of putting my own gestures into it but the demo doesnt

    give me the "codes" of the gesture the way i needed to put them on the runtime.js file, i think thats the only way to erase the already buildin gestures and create our own, to change by hand the runtime.js...

  • hi, can this plugin be updated??? its really good but sadly is having some javascript errors when deleting the defined gestures...

  • I went to the c2runtime.js file and found this line:

    if (this.runtime.isWKWebView)

    playMusicAsSoundWorkaround = true;

    I changed that to false;

    Re-compiled with XDK and tested it. No more crashes after playing an hour.

    However, audio volume via tags no longer function, it plays at full.

    This isn't a huge deal, since at least there's no more crashing and there's music!

    i will test this on my game and see if its works, i export with phonegapp

    update: couldnt find that line of code in mine file.

  • Same problem here

    Sound is not playing before you make action on screen

    one of my games (HTML5 not mobile application ) on loader after load all content and images there a sound should play after complete the sound should enter the game , on web and android browser work 100 % , on ios browser you need to make call to action

    so you finded a way to make it play music?

  • You can theoretically animate it by making it change tiles at runtime using events. Haven't dabbled in it myself so can't say how feasible this is.

    Would be nice to have a full on animation, though.

    that would destroy the performance of the game i think