Checking Resolution

Non-platform specific questions.

Checking Resolution

Postby wocket » Mon Aug 16, 2004 12:24 pm

Hi everybody

I'm a newbie here but i've had GE for some time and now i've got a bit more time on my hands I hope to be making more use of it.

I was wondering if there was a way to check for the resolution of the device a game is running on and make changes accordingly I'm thinking of 240 x 320 and 480 x 640 QVGA and VGA pocketpc's. Or is it a matter of doing a seperate compile for every resolution.
wocket
 
Posts: 5
Joined: Fri Aug 13, 2004 9:09 am
Score: 0 Give a positive score

Postby Just4Fun » Mon Aug 16, 2004 5:56 pm

Maybe I'm way off base on this, but I *think* you will probably have to do a separate compile for each platform. My shakey reasoning is based on the idea that each OS and some of the hardware that the OS is operating on is different --> varying APIs. So if you only check the resolution, your program probably wouldn't run on the user's machine unless you have a way to check the user's platform and compile from that point. Sounds pretty complicated to me.

However, if you just want to change resolutions on the same OS, you could try creating and saving the game in several resolutions. Then you could use the LoadGame function to load the resolution based on some event. I haven't tried this so I don't know for sure that it would work.

More knowledgeable people may find my logic lacking... :wink:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby jazz_e_bob » Mon Aug 16, 2004 9:38 pm

welcome wocket :)

( no answer to your question - just saying hi )
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby wocket » Tue Aug 17, 2004 8:58 am

Thanks guys :D

Looks like seperate compiles oh well not a major hassle.

Lovin GE so far.
wocket
 
Posts: 5
Joined: Fri Aug 13, 2004 9:09 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest