The Daily Click ::. Forums ::. Klik Coding Help ::. Full screen giving massive trouble.
 

Post Reply  Post Oekaki 
 

Posted By Message

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
20th October, 2008 at 13:16:01 -

If you do what I said under "alternatively..." it should do it with the correct ratio. Set the app's frame to 320x240 in the settings, and it will automatically resize the smaller levels. Then you can just toggle fullscreen.

Image Edited by the Author.

 

  		
  		

Mr. Ksoft



Registered
  02/07/2005
Points
  125
20th October, 2008 at 21:42:06 -

Yes, but this is a scrolling game. If I enlarge it to 320x240 it's going to display those levels in 320x240 because the levels are larger than the screen size. It'd work great for everything else, but in this case the actual levels' pixel size would be shrunk down.

Maybe I should post some comparison images to demonstrate what I mean...

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
21st October, 2008 at 02:40:46 -

You should. Either my brain is too tired or too impatient to try to figure out what you mean.

 

  		
  		

Mr. Ksoft



Registered
  02/07/2005
Points
  125
21st October, 2008 at 03:43:03 -

Okay, this demonstrates.
I've put up two images, the first of a logo screen which is a 160x120 pixel frame, the second of gameplay, which is a larger than 320x240 pixel area.

On the left is how it has been done-- 160x120 with Window Control enlarging the window.
On the right is how you suggested-- setting the game's window size to 320x240.

While the two logo images look almost identical, when you get to scrolling levels it becomes uber-obvious what the problem is with that method...

Image

Also an odd thing to note: when run in normal old 320x240 MMF cuts off three pixels horizontally and vertically. If you chop out both screens on the right from their window borders you'll see they're only 317x237! That problem doesn't occur with my method...

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
21st October, 2008 at 13:48:20 -

I thought maybe that's what you meant. I'm thinking you're setting the wrong value for resizing the playfield, but I'm not sure and I can't check at the moment. I'll look into it after class today.

 

  		
  		

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
23rd October, 2008 at 20:26:09 -

I made a little example using your original example which uses the Big Box object to change the resolution directly, I didn't try it with scrolling but it should work if you implement it properly

http://www.jsoftgames.com/Fullscreen_example_fix.zip

 
n/a

Mr. Ksoft



Registered
  02/07/2005
Points
  125
23rd October, 2008 at 23:28:48 -

It most certainly works!

At least in the example. I copied it all over to my game and incorporated it with my settings loading from an INI... didn't work 100%. The biggest problem was that if it started in full screen mode based on the settings, it would tend to get stuck in 320x240 screen resolution even after quitting, and when returning to windowed mode it would display in some odd mode... looked like 160x6 pixels?

I just thought some more and realized exactly why these happened, though, so I think it can all be worked out and things will be perfect! Thanks!

Edit: Although, I just realized that the resolution change screwed up my desktop icon configuration (since I don't have mine set to auto-arrange), and that ticks me off. Dunno if that was from when it got stuck, but if it happens every time I'll have to drop it. Such messings with the icons are not really a good thing.

Image Edited by the Author.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
23rd October, 2008 at 23:42:53 -

This could be a predicament. >_O I looked at it again... I know there's a feature that stretches the level out to fill the window... why is it resizing the whole thing?? O_o Confuzzling.

 

  		
  		

Mr. Ksoft



Registered
  02/07/2005
Points
  125
23rd October, 2008 at 23:44:12 -

As it turns out, this resolution change does indeed screw up desktop icons. I liked MMF's built in res-changing because it was very good about leaving icons be. Unfortunately, I don't think anyone who plays my game would really enjoy having their icons screwed with every time they play, so I can't use this. The squished screen will have to be acceptable, or I'll have to go with plain old stretched maximizing and hope to god that it doesn't run too slow. (or HWA helps make it run not slow...)

 
n/a

JustinC



Registered
  02/04/2006
Points
  1517

GOTM - MAY 2009 - 3RD PLACE!
24th October, 2008 at 00:12:24 -

Another problem with screen resizing in this day and age is the fact that there's both 4:3 monitors and 16:9. I've got a 16:9 so when I full screen a game it ends up distorted. I wish there was a way to swap between aspect ratios and give the player a wider view of the level in 16:9 mode. . .

 
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
24th October, 2008 at 00:14:33 -

That could be a nightmare with some games. Using off-screen resources and whatnot...

 

  		
  		

Mr. Ksoft



Registered
  02/07/2005
Points
  125
24th October, 2008 at 00:16:02 -

Unfortunately, that will always be a problem.
The good news, though, is that my game is retro styled-- and it'll look just like an old game console looks on a brand new widescreen TV! (...hahah)

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
24th October, 2008 at 01:16:26 -

Hmm, i messed up your icons you say? That is odd, I've been using that method for a while and I've never experienced this. ah well, I guess I'll have to give it another look

 
n/a

Mr. Ksoft



Registered
  02/07/2005
Points
  125
24th October, 2008 at 02:51:38 -

It's one of those things that happens when you arrange your icons manually, like I do. I arrange things into little blocks on my desktop by category. But anyway, this manual positioning is lost when the resolution changes because it literally shrinks the size of the desktop, so those icons are pushed into the new available area... it makes total sense. I'm guessing MMF2 avoids making this happen using its full screen mode because it seems to do it through DirectX (even without DX graphics mode on. My old MMF1.5 programs from 2002/3 used to never work on computers in full screen without DX installed) which is designed for games and doesn't literally change the desktop size. The Big Box just flat out changes the resolution...
This icon messing up usually isn't noticed because people have their icons set to automatically position themselves.

At least, that's my guess. It makes sense.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
24th October, 2008 at 03:33:29 -

Oh, your right! I tried it myself and it affected my icon placement, well back to the drawing board!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click