Goto Layout not working after Wait on Android?

Discussion and feedback on Construct 2

Post » Tue Dec 17, 2013 3:36 pm

Hi! I built a game and compiled it with CocoonJS and installed the debug/signed .apk on my android device. But when I click on a button which has the following actions, the GoTo is not fired:

On Touch
> Play Sound
> Wait 2 sec (so the sound can be heared, first time works without wait on pc but second time on the layout the sound was cut off)
> GoTo Layout (GAME)

But it does not switch to the other layout. Is this a bug?
Bl4ckSh33p2013-12-17 15:37:18
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Tue Dec 17, 2013 7:39 pm

Is there a Function involved?
Are you using Goto layout by name?

I find that wait(x) will remove any values passed by a function.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Wed Dec 18, 2013 7:57 am

Hi. I used a function and "Go To Layout" (not by name).


When I hit one of the three difficulties I hear the sound but the layout is not changed on Android. It works fine on iOS and PC. :(
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Wed Dec 18, 2013 9:02 am

I disabled the Wait and exported it to compile a new version via CocoonJS and it's still broken. I hear the sound but it does not switch to the GAME Layout.

This time I added a few .js files from clay.io because achievements and highscores did not show up. But its still not working on the android tablet.

/Update: I also noticed that no background sound is played on Android (.apk and html version). It starts but then it gets muted.Bl4ckSh33p2013-12-18 09:21:44
B
53
S
16
G
6
Posts: 718
Reputation: 9,150


Return to Construct 2 General

Who is online

Users browsing this forum: newt and 1 guest