game dev help (screen orientation)

  1. slick01

    slick01 New Member


    I am working on a game for android at the moment, and was wondering if anyone can tell me how i would change the screen depending on orientation

    so if the user turned the phone horizontally then the app would be viewed horizontally if you know what i mean

    also how would i make a timer, so if a button were pressed, how would i say stop for 2 seconds and then go to link?

    thanks in advance

  2. RadiatorRT

    RadiatorRT New Member

    This would involve using the phones sensors to measure the position/orientation of the phone and change the camera accordingly. Possible using gluLookAt.
  3. jiminaus

    jiminaus Well-Known Member

  4. miXer

    miXer Well-Known Member

    If you don't specify otherwise, android apps rotate depending on the sensors by default.

Share This Page