Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Resolution change

Hi guys i have to make my game when played to be at a resolution of 320X240, i know its worthless due to its small size but its really gonna be helpfull for me.Any scripts existing out there that can change the size from default to small resolution such as this? any help would be really appreciated.
 
try
Code:
Graphics.resize(320,240)

I tried it and it does change the resolution, now i got problem as the screen was supposed to be compress to resolution of 320x240 but remains the same. I have trouble viewing my character and the screen was horrible.
 
No no, there are variables you have to change in the default scripts.
And usualy, people who post in RGSS support post here because they want to resolve the problem themselves ;)

You might want to change this in Game_Player
Code:
CENTER_X = (544 / 2 - 16) * 8     # Screen center X coordinate * 8
  CENTER_Y = (416 / 2 - 16) * 8     # Screen center Y coordinate * 8

and hange a couple of things in setup_scroll, from Game_Map
Code:
def setup_scroll
    @scroll_direction = 2
    @scroll_rest = 0
    @scroll_speed = 4
    @margin_x = (width - 17) * 256 / 2      # Screen non-display width /2
    @margin_y = (height - 13) * 256 / 2     # Screen non-display height /2
  end
 
Hi Dargor I did change the resolution for the window but I notice the picture and message box remains the same as before as well as the tilesets. I was wondering if the pictures, tiles and message boxes were also seperate and have to make their own changes too.
 
mufffin":1uctfbam said:
Hi Dargor I did change the resolution for the window but I notice the picture and message box remains the same as before as well as the tilesets. I was wondering if the pictures, tiles and message boxes were also seperate and have to make their own changes too.
You're trying to make it like a GBA game, correct? (At least, I assume so, considering the fact that you are mentioned other stuff's size and a GBA sized screen) Anyway, if it's anything like RMXP, you'll have to add something like "self.zoom =" whatever you want to most of the things that have sprites. You'll also have to edit windows, as that isn't done for you. Finally, you'll have to edit the (hidden) tilemap class so that you can use zoom in that too.
 
@glitchfinder: Yes indeed youre right but its much more... example: being able to resize the screen to small size will make the game more faster (especially with big maps and lots of events). I notice there are so much things involved aside from simply adjusting the window height. I hope somebody can make some adjustment on it. :smile:
 
mufffin":txnsjets said:
@glitchfinder: Yes indeed youre right but its much more... example: being able to resize the screen to small size will make the game more faster (especially with big maps and lots of events). I notice there are so much things involved aside from simply adjusting the window height. I hope somebody can make some adjustment on it. :smile:

I've got something that does it in XP, but the basic mechanics invocled are different for VX. I'd recommend looking in the help file for zoom, and it should show you which sprites are able to use the zoom function.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top