Android viewer rotates and restarts the app after a scene change
Hello,
I wanted to get the app I'm working on onto an android device to allow my partner to test it out while I'm still working. I got my test device and mac all setup for the android viewer and finally launched the game on the phone!
Here's the problem...
My game starts on a simple menu, with actor buttons which lead to another scene. I get to the second scene no problem and start playing the game, but when the game gets to a certain point where it changes scenes again - it goes haywire.
The phone (and I tried this on a nexus tablet also, same result) quickly rotates 90 degrees, then rotates back. Then it ends up on the launch screen again (restarts the whole game). I also tried locking rotation on the device, and the same thing happens.
Has anyone seen this before? All the buttons that do simple scene changes work fine. But the one that has a lot of logic involved before the scene changes seems to crash the app.
Thanks!
Comments
I would take a look at your rules at the part of your game. Check the actors etc. So maybe the change scene behaviour. You may have blank rules, or rules with extras you didn't want by mistake
Like Balls? Then click here! We've 100 coming soon
I'm looking at that now. But what's weird is that it works exactly as intended in the GameSalad Creator.
Found the problem. Hopefully my mistake will help someone in the future searching the forums for this.
So for some reason, the 2 screens that were crashing/rebooting the game had scene properties set to "Auto Rotate" = Landscape Left. (Whereas the whole rest of the app is portrait only).
Easy fix once I found it.....
Back to work now!