Jump to content


Photo

Background Stretching


  • Please log in to reply
2 replies to this topic

#1 Tennx

Tennx

    The Entrepreneur

  • GMC Member
  • 259 posts
  • Version:GM:Studio

Posted 24 February 2012 - 11:11 PM

Hello. I have been making experiments with Game Maker 8.1 Standard, related to Background (Stretching on Rooms that are from 640x480 to 5120x3840).

I do this so I can make Splash Screens for my game, using room transitions between them. Quite simple of course.


Some people would ask why would I do a 5120 x 3840 room without viewports... but actually it's pretty simple: I want to mantain the quality of the image of my background, in any resolution (aspect ratio 4:3).

4:3 => 5120 : 3840 = 1920:1440 = 1440:1080 = 1200:900 = 1024:768 = 800:600 = 640:480

If I use an 5120x3840 image on a 640x480 room... it stretches and loses quality. That's just wrong u_u. In order to keep the quality, the room's size must be near the image's size.

Taking in mind I'm relatively new to GML (but I started straight in GML so I find it rather easy to use), the issue is the next:

When I make a room with a resolution larger than my screen, and playing in windowed mode... The game goes Fullscreen and it loses the aspect ratio. Trying to resize the window with GML to correct this didn't work.

My request for a future update would be... handling this so the game (even if it goes full screen) keep the aspect ratio of the game.

Edited by Tennx, 24 February 2012 - 11:12 PM.

  • 0

#2 FmMan3

FmMan3

    GMC Member

  • GMC Member
  • 169 posts

Posted 25 February 2012 - 10:16 PM

In the settings you have the option to keep the aspect ratio as it is, or stretched it to fill, along with setting your own % to scale it to.

Edited by FmMan3, 25 February 2012 - 10:16 PM.

  • 0

#3 Tennx

Tennx

    The Entrepreneur

  • GMC Member
  • 259 posts
  • Version:GM:Studio

Posted 27 February 2012 - 03:42 AM

Aspect Ratio doesn't work if your room's dimensions (without viewport active) are larger than your screen's resolution :/
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users