Perfect Full Screen Games (with display properties object) for newbies (TGF/MMF)
Author: | X-Member19479
|
Submitted: | 2nd December, 2004
|
Views: | 5359
| Rated: |
|
|
Well actually this is a small and easy article. But I'm writing it for not only newbies but also for some experts that still don't know. About this preference.
Ever noticed when making a game full screen with a resolution of more than 1024x768 doesn't enable everyone to play the game properly. I noticed an object which some of you may know but don't care a lot. It's the DISPLAY PROPERTIES object. Which enables you to change the Windows resolution realtime, and suits the needs of your game. The resolution are 512x384, 640x480, 800x600 and 1024x768. For example: You have a game which all of you games frame sizes are 640x480. You make the game from the TGF/MMF game preferences menu to fullscreen and resize to fit the screen which makes the gfx look really ugly inorder to suit to your default resolution screen. Well here is you solution to your problem but you can only use the resolutions 512x384, 640x480, 800x600 and 1024x768. That means no custom resolution. It's a pretty easy thing which only requires 2 lines of coding.
>Start Of Level Create The Object, And change the resolution that suits you need.(only needed at the first top frame.)
>End Of Game Destroy the object.(It will automaticly change it to your default resolution after closing your application.)
For all of the frames don't forget to put:
>End Of Game Destroy the object.
That's all.
Warning: Don't forget to put at the end of the game the second line which destroys the object or your system will crash when you exit the game.
Forgot to mention: At the game preferences enable "full-screen at start" and dissable all others.
Also here is the link where you can get the Resolution Object:
http://www.clickteam.info/extensions/extview.php?id=209
Good luck with making your games!
|
|
Deleted User
|