Hi all,
I am having problems with a non-responsive accelerometer. At least it is non-responsive some of the time.
Last week my game was simply a menuscene with two buttons. The first would take you straight to a gamescene, with a child gamelayer, in which you used accelerometer controls to move a sprite. Very simple.
Just so that it did something I made the second button do exactly the same.
This week I added a level-select scene between the menuscene and the gamescene. The levelscene has a levellayer which handles the touch controls, and then the gameScene uses an initWith to change variables depending upon the level selected. Again, very very simple stuff. The second button on the menuscene still takes the user directly to the gamescene, bypassing the levelscene.
Q: when I click on the second button, my accelerometer controls work fine. But when I go to the gamescene via the levelscene, my controls do not. The gamescene is subclassed, so the same thing is called each time, so I've got no idea what to even look for. Am I missing something here?
Has anyone experienced this, or have any suggestions?
to clarify:
menuscene button1 --> levelscene --> levellayer --> gamescene --> gamelayer with WORKING accel controls
vs.
menuscene button2 --> gamescene --> gamelayer with NON-WORKING accel controls