The Daily Click ::. Forums ::. Klik Coding Help ::. Window resizing.
 

Post Reply  Post Oekaki 
 

Posted By Message

HOSJ



Registered
  01/07/2002
Points
  669
5th July, 2005 at 19:36:13 -

Hey guys.. It's me. I'm not sure if anyone remembers me or not.
Anyways, my problem with TGF is:

I'm attempting to make a game in TGF, with enlarged pixels so I don't have to put too much work into the graphics, and for a stylized look.

But with a resolution like 320x240, the game stretches out unevenly, and looks horrid. Is there any way to fix this?

Thanks in advance.

 

"They'll never find the bodies"


Ashman

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
5th July, 2005 at 20:26:06 -

Well...
The best way I've found is to offer some options. You could have it display in a 320x240 window, which, while barely visible, would give you its normal size, or a 640x480 window (with the window control object), which shouldn't stretch out TOO much but still provide visiblity without reducing the speed, or a full-screen mode - not maximized, but type you can press alt+enter to achieve. You can also set up an event for this during gameplay.

The fullscreen mode is ideal, as it changes the resolution (I think), fills up the entire screen, and has no stretching for 320x240. Unfortunately, it only seems to work for a 256 color mode.
If you're using 256 colors anyway, cool. But note that newer versions of Windows don't support 256 colors anymore. The result will be funky at best.

Anyway, that's what I've been doing in my similar situation. There may be better methods out there, though...

EDIT - Wait, I'm using MMF for these; I don't know if they'll still apply...

Image Edited by the Author.

 
Go Moon!

HOSJ



Registered
  01/07/2002
Points
  669
5th July, 2005 at 22:51:25 -

Therein lies my problem. I'm using fullscreen and window stretching, and some in-game pixels show up as quite a bit larger than others. I'm probably just going to have a 640x480 window now, with letterboxes.
That should fix the problem, with no stretching.

 

"They'll never find the bodies"


Ashman

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
7th July, 2005 at 05:31:18 -

640x480 = 320x240 times 2, so every pixel will be twice as large in 640x480.

 
Old member (~2004-2007).

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
7th July, 2005 at 05:36:01 -

The smallest preset resolution of TGF is 320x200, not 320x240. You sure you didn't put it to 320x200?

 
a/n

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
7th July, 2005 at 07:05:25 -

320x240 is better anyways, remember he said letterboxing which means he uses x240.

 
Old member (~2004-2007).

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
8th July, 2005 at 19:39:29 -

Use,

Display properties object,
Window object,
(keep window at 320x240 because this size works with this method)

Set the 'resize display to fill screen' on

Make a blank frame with these events

always - 'windows object' window size > set client 640x480
always - 'display properties' create dd object
always - 'display properties' change resolution to 640x480
always - next level
end of game - destroy dd object (you will need this when testing the game)

hey presto!

 
.
   

Post Reply



 



Advertisement

Worth A Click