• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps game dev help (screen orientation)

slick01

Lurker
hi

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
slick01
 
This would involve using the phones sensors to measure the position/orientation of the phone and change the camera accordingly. Possible using gluLookAt.
 
Back
Top Bottom