The Daily Click ::. Forums ::. Klik Coding Help ::. Serious Problem about Sub-Application
 

Post Reply  Post Oekaki 
 

Posted By Message

Hempuli

Crazy?

Registered
  09/01/2005
Points
  7968

Game of the Week WinnerGOTM JULY - 2009 - 2ND PLACE!GOTM AUGUST- 2009 - 2ND PLACE!GOTM OCTOBER 2009 - WINNERI am an April FoolGame of the Week Winner - MARCH 2010!-
21st May, 2007 at 08:13:53 -

So. I was creating a GB-like game for LIJI's gb compo, and I wanted to test how does it look on fullscreen. Actually it looked really neat, but then I noticed a major bug: The Sub-applications didn't resize along the other game. Here's an example:

Image

So, there's the map in the top-left corner. As you see, the other game's fullscreen & resized, but the Sub application isn't somehow. Although the map can look nice in that example, it's a serious problem because I want the WHOLE game to be fullscreen, it also looks stupid when talk to someone and the talking engine is in a sub-application. That game has been done in MMF 1, but I guess there's the same problem with MMF 2. Any help?

Image Edited by the Author.

 
No sig for you.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
21st May, 2007 at 08:55:52 -

Can't you just resize the sub-app proportionally with the screen? It should stretch automatically. Or simply don't use a sub-application.

Edit: Nevermind, I just realized you can't resize sub-apps in runtime.

Image Edited by the Author.

 
n/a

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
21st May, 2007 at 09:05:07 -

Hmmm, I think I used to have a similar problem, which I solved using the window control object (or something like that). Can't really tell, since I dont have MMF installed atm.

But what method did you use to make it fullscreen? You might save a lot of trouble by changing the resolution, instead of stretching the window.

Image Edited by the Author.

 
This space is for rent

Hempuli

Crazy?

Registered
  09/01/2005
Points
  7968

Game of the Week WinnerGOTM JULY - 2009 - 2ND PLACE!GOTM AUGUST- 2009 - 2ND PLACE!GOTM OCTOBER 2009 - WINNERI am an April FoolGame of the Week Winner - MARCH 2010!-
21st May, 2007 at 10:06:30 -

I changed the resolution, put it fullscreen & used DirectX.

 
No sig for you.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
22nd May, 2007 at 07:19:45 -

1) Using the subapp simulates things the GB can't do

2) You are using more than three shades of grey for your dude.

 
n/a

Hempuli

Crazy?

Registered
  09/01/2005
Points
  7968

Game of the Week WinnerGOTM JULY - 2009 - 2ND PLACE!GOTM AUGUST- 2009 - 2ND PLACE!GOTM OCTOBER 2009 - WINNERI am an April FoolGame of the Week Winner - MARCH 2010!-
22nd May, 2007 at 10:16:25 -

What are you talking about Bibin? I don't need any tips about the game itself, just help for this problem! And I know that Sub-App can do things that GB can't, but I'm not going to do them.

-_- I see you didn't read my post at all.

 
No sig for you.

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!
22nd May, 2007 at 10:28:24 -

I see what you're trying to do... Zoom in the content of the subapp, right? So it shows a minimap of the current room or something.

Some objects have problems zooming in when resizing the app. For example, the edit object, buttons, and subapps. There is no fix, better find a different way to make this.

 
Old member (~2004-2007).

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
22nd May, 2007 at 11:13:51 -

I had this problem with my game. It's even harder to fix if you have options for custom resolutions and aspect ratios. The absolute simpliest solution is to set aside 2 global values for the original windows X and Y (and sometimes, position too). As the subapp loads make sure the first event (or start of frame, woteva) sets the dimensions to global events you stored.

Jobs a goodun.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

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!
23rd May, 2007 at 05:44:28 -

How about using the Viewport object? Will that work? (I never actually used it.)

 
Old member (~2004-2007).

Hempuli

Crazy?

Registered
  09/01/2005
Points
  7968

Game of the Week WinnerGOTM JULY - 2009 - 2ND PLACE!GOTM AUGUST- 2009 - 2ND PLACE!GOTM OCTOBER 2009 - WINNERI am an April FoolGame of the Week Winner - MARCH 2010!-
23rd May, 2007 at 06:57:40 -

I'm trying to do that the subapp resizes to the same resolution as the game. In the example pic the subapp is in bigger resolution than the other game.

Image Edited by the Author.

 
No sig for you.

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!
23rd May, 2007 at 07:16:09 -

Yeah, that's what I said. Edit box etc. has problems with that too (the font doesn't resize, for example, and the borders).

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click