GS 0.9.1 Still Has Orientation Bug

JelJel Member Posts: 319
edited November -1 in Working with GS (Mac)
I update my game when 0.9 came out and it would not lock in correct landscape orientation on startup you have to physically rotate the device for it lock. For anyone playing the game for the first time it can be very off putting as it works with the accelerometer and tilting the device makes the ship move in the opposite direction.

Anyway I let the GS team know about the problem when 0.9 was released but it seems that the issue is still there.

See for yourself in the lite version - http://itunes.apple.com/gb/app/rescue-war-craft-041-lite/id361984140?mt=8

Comments

  • Rob2Rob2 Member Posts: 2,402
    on my 3gs the game screen rotates once and then locks (the GS splash rotates freely at first)

    I was served an add for PennyTalk Mobile in UK
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    By default when publishing only one landscape position is selected ( home button to the left). You should prob try selecting both and make sure auto rotate is on n the scene. I didn't seem to have an issue when I loaded you game other than I had to turn the device upside down to get my ship to move from the top of the screen and I have tilt it opposite of the direction I want to move. which is awkward.

    Also if portrait lock is selected on the device the splash screen will rotate to portrait regardless of device position

    ___________________________________________________________________________________
    BubbleBall Template HERE!!

    AppSolute Entertainment on Facebook
  • JelJel Member Posts: 319
    tenrdrmer said:
    By default when publishing only one landscape position is selected ( home button to the left). You should prob try selecting both and make sure auto rotate is on n the scene. I didn't seem to have an issue when I loaded you game other than I had to turn the device upside down to get my ship to move from the top of the screen and I have tilt it opposite of the direction I want to move. which is awkward.

    Also if portrait lock is selected on the device the splash screen will rotate to portrait regardless of device position

    ___________________________________________________________________________________
    BubbleBall Template HERE!!

    AppSolute Entertainment on Facebook

    All the above has been tried. This is something that has happened since 0.9 as it worked perfectly in 0.8.9 and below.
  • ORBZORBZ Member Posts: 1,304
    I don't have this problem.

    But I downloaded your game and I see the problem.

    Accelerometer x and y are mapped to the device physical orientation, not the game.

    What you need to do is virtualize the inputs so that x and y are always correct regardless of orientation.

    I do this:
    When orientation = landscapeLeft
    Game.tiltX = -accelerometer.y
    Game.tiltY = -accelerometer.x

    When orientation = landscaperight
    Game.tiltX = accelerometer.y
    Game.tiltY = accelerometer.x

    (I may have my signs mixed up as I'm doing this from memory on my iPhone)
  • JelJel Member Posts: 319
    Thanks ORBZ for you help. I'll try that later.
Sign In or Register to comment.