AndyWatson's Recent Forum Activity

  • Ashley - Got it! It's when using the webstorage facility - that's what's causing the problem. It also does it in the preview mode, but I hadn't cleared my appcache before, so that's why it seemed to be working.

    I've put together a quick capx here: http://dl.dropbox.com/u/58315465/2012-02_BugTest1.capx

    I hope this capx explains it. Basically, when the character gets through the exit hole it should restart the layout, but I think something in the webstorage is now stopping it creating the value. I now don't think it was the sub-event that was the problem in the first place, I just happen to have webstorage events in my sub-events.

    ...I think I've created the capx the right way to show what's going on... essentially this is a roughcut of what is happening in my main project

    Let me know if you need anything else, Ashley. Look forward to hearing your take.

  • ...nope, it isn't that either!!! I'm narrowing it down now - looks like it's something to do with sub-events that reference a global variable that links through to a WebStorage value...

    Hopefully I'll nail it soon.

  • OK, had a bit of a play and created some new .capx files and most sub-events seem to be working now in r80.2.

    It looks like it may only affect sub-events that are referencing a global variable. I'll have a think about how I can build this into a simple layout and post up.

  • I'm going to build a new .capx now and if it doesn't work I'll upload it here.

    I can't think what else it can be other than something in the sub-event handler. This is a project I've been working on since December and have pushed through PhoneGap numerous times with other C2 releases without this problem. I'll start something from fresh and see what happens.

  • Ashley r80.2 doesn't fix the PhoneGap problem with sub-events. I've tried with and without sound files (just in case) and neither way works, sub-events just won't trigger. <img src="smileys/smiley6.gif" border="0" align="middle" />

    ...on the plus side, sound is playing!

  • Is this still an issue in r80.2?

    I can't check it till tonight, but will let you know as soon as I know. Very much looking forward to having sound in the apps I create with PhoneGap!!!

  • Export from C2 for phonegap, zip all your files into a single archive, then use the build.phonegap facility of phonegap to compile your game for mobile (carried ouit online). Then load it onto your device using the QR code.

  • OK, definitely the sub-event that's causing problems with PhoneGap. I've just deleted the only remaining sub-event, exported for PhoneGap and pushed it through PhoneGap build. Now that the apk has no sub-events it runs as it should.

  • Stripped everything down to one layout and event sheet with a few events and one sub-event, but now it doesn't even launch as an apk after PhoneGap compiles, I just get the white pre-load screen on my Samsung Galaxy S2. Still all works fine in the 'run layout' preview.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've exported a project to PhoneGap and when I launch the apk most of my sub-events are ignored and just don't trigger.

    All works fine in the 'run layout' preview, it's only when I export the project for PhoneGap and complete the build that sub-events are ignored - it's as if they no longer exist. I've also tried exporting without minifying the script, but same thing happens.

    I'll create a mini version of my game and post here to demonstrate the problem.

  • Great news! Hoping for the phonegap audio fix to be in the update.

  • Mine came through almost immediately to the email address linked to my paypal account - it didn't end up in your junk did it? (sent from licensehelp@scirra.com)

AndyWatson's avatar

AndyWatson

Member since 9 Jan, 2012

None one is following AndyWatson yet!

Connect with AndyWatson

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies