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.
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.
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.
@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. ...on the plus side, sound is playing! AndyWatson2012-02-29 20:23:31
What sub-event is it that you think is the problem? Can you reproduce in a new .capx and share that?
Given that sub-events are a very basic and crucial part of Construct 2, and there aren't any other reports of subevents not working in PhoneGap, I would suspect it is not actually the problem, and only appears to be working like that. Do you have any other ideas?
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.