grigrizljac's Forum Posts

  • If it were possible to work around the limitation by simulating touches, we would have done that already. Unfortunately it's not possible.

    You should be able to play sounds at any time after the first touch. Only music can't play until the next touch after it's started. There's really nothing that can be done about it, it's a stupid limitation in both Safari and Chrome for Android. If you categorise the audio as a sound instead, it can play any time after the first touch, but then that fully decompresses the entire track in to memory which is pretty wasteful, whereas music can stream. So the restriction is completely pointless and encourages wasteful workarounds, but browser makers won't seem to budge on this.

    TBH I would just ignore the limitation and let the engine do its workaround where music starts on the next touch after playing. You don't really need any "touch to continue" screens, it just won't start music playback until the user touches the screen, and if they're doing that a lot in your game hopefully they won't notice.

    But why does iOS have this limitation? What's the reason? Are they planning to remove it?

  • Tested it on 5 devices(Oneplus 2, Nexus 6, Galaxy s4, 2 x Galaxy s5's) now and it only doesnt work on both the Galaxy s5's. Weird stuff. On 1 s5 the play button doesn't even work to start the game. The other has a fps of 10. Man this sucks...

    That's when Crosswalk comes in. Since it has a kind of browser integrated (~18 mb), it works about the same on all devices.

  • fred37000

    Thanks!

    I am still in test phase so i am previewing in intel xdk app on ios but as soon as im ready for build ill try your solution.

    Meanwhile i am still looking for a way to lock screen on test app.

    If you are testing in Intel App Preview on iOS, orientation lock doesn't work. It doesn't work for me there, either. But when published, it works for me.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I thought that they have educational discount for you to buy for students ?

    True ... https://www.scirra.com/education

  • Okej so dropped it to 9 mb by not building it with Crosswalk but just Android. Not sure why one wants to build with crosswalk then in the first place? Everything is working accordingly and I even have a slight performance increase.

    Crosswalk has better performance on lower versions of Android (less than 5 Lolipop), that is 4.x. Android 5 has good enough WebView that Crosswalk is usually not required. But if you want to support older versions*, too, I think you can't get a good performance without Crosswalk.

    *this is the main problem for me on Android. First, Google makes the OS. Then the device company edits it. After that, your carrier adds some things. After all these steps, you receive the OS update, which could actually be already more than a year old. It is also limited to a country, it takes different time to come to a different country.

    But if your tests show that everything works fine without Crosswalk, then you can probably build without it.

  • For the last event, you have to add a condition "Else".

    Construct 2 events work from the top to the bottom.

    So when you click the button, and if Sound_var = 1, it changes it to 0. -> This means the next line of code is now true, because Sound_var now equals 0.

    Else condition, on the other hand, runs the second part only if the first part wasn't true, and vice-versa.

  • I think the example "Audio analyser" (when you open a new project, scroll down to examples) should give you some basic things.

  • 1. Yes. If you add Browser plugin, you can use action Execute Javascript to execute your own javascript.

  • It's awesome!

  • If you are still looking for step 7) The Build Failed. Try to add File plugin to Intel XDK. It is required for some other plugins to work.

  • I sometimes experience similar/same issues.

    When I have a little bigger project opened, and I change either a property value or close the image editor, the Projects and Properties fields get reset, they scroll up to the top, I think close opened subfolders; Properties field shows Project properties (even if I edited an object's property).

  • Add some spaces to the link.

  • You can try changing Jump Sustain value under Platform Behavior properties.

    For the event, set like this:

    Touch|Is touching object -> PlatformObject|Simulate Platform pressing Jump

    example .capx

  • Wow, insane! Thanks for sharing!

  • This is the plugin that i used : cordova-plugin-payment-iap

    and this is the build error [...]

    Thanks, I would like to be able to use IAP apps again.

    You can try adding "File" plugin to Intel XDK. It is required for many other plugins to work.