- Joined
- Mar 28, 2014
- Messages
- 62
- Reaction score
- 23
- First Language
- English
- Primarily Uses
UPDATED:
So I've figured out a temporary solution to my problem but it is in no way a perfect fix hopefully Zeus or Zane may be able to look at this and figure out a way to preform it in fullscreen but til then i got what i want in windowed mode
First Go to Game_Interpreter Line 1037+ and change it from this below.
to this below.
next lets create a new script under Materials and call it whatever you want I myself included it in my Core Script so if you plan to have multiple scripts within your game i would do the same otherwise just make a script called Resolution or something like that to make it easy to remember what the script does just by looking at its name. Next paste this script below.
Alright sweet we are almost done now we need to go into our main process scripts and place 1 line of code into the Main Script.
It's the one that looks like this below initially.
Now make it look like this below.
and now all modifications needed to run a higher resolution for both movies and gameplay in windowed mode is complete now when you play a movie in 640x480 it will center properly and then resize the graphic's back to its original size prior to increasing the resolution this way all images in other scripts don't need to be resized and edited its fully plug and play. this also works for higher resolution rates as well i've tested 800x600 for gameplay and it works perfectly fine i'm currently rendering a 800x600 video to test the movie side of things to make sure it still works with the 800x600 resolution so until then i can only confirm this works 100% for 640x480 windowed mode, but its a start in the right direction 
UPDATE: anything above 640x480 has issue's when it comes to movies so trying to figure out if there is a way to center graphics because if so then all we'd need to do is make it center the video instead of using Graphics.resize_screen and it will work with any video does anyone know how i would go about getting it to center?
So I've figured out a temporary solution to my problem but it is in no way a perfect fix hopefully Zeus or Zane may be able to look at this and figure out a way to preform it in fullscreen but til then i got what i want in windowed mode
First Go to Game_Interpreter Line 1037+ and change it from this below.
#-------------------------------------------------------------------------- # * Play Movie #-------------------------------------------------------------------------- def command_261 Fiber.yield while $game_message.visible Fiber.yield name = @params[0] Graphics.play_movie('Movies/' + name) unless name.empty? end
#-------------------------------------------------------------------------- # * Play Movie #-------------------------------------------------------------------------- def command_261 Fiber.yield while $game_message.visible Fiber.yield name = @params[0] Graphics.resize_screen(640,480) Graphics.play_movie('Movies/' + name) unless name.empty? Graphics.resize_screen(544,416) Resolution.resize(640,480) end
#==============================================================================# ■ Class: Resolution#==============================================================================class Resolution def self.resize(width,height) getSystemMetrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I') moveWindow = Win32API.new('user32','MoveWindow',['l','i','i','i','i','l'],'l') findWindowEx = Win32API.new('user32','FindWindowEx',['l','l','p','p'],'i') window = findWindowEx.call(0,0,"RGSS Player",0) screenwidth = getSystemMetrics.call(0) screenheight = getSystemMetrics.call(1) moveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1) endend
It's the one that looks like this below initially.
#==============================================================================# ** Main#------------------------------------------------------------------------------# This processing is executed after module and class definition is finished.#==============================================================================rgss_main { SceneManager.run }
#==============================================================================# ** Main#------------------------------------------------------------------------------# This processing is executed after module and class definition is finished.#==============================================================================Resolution.resize(640,480) # Resolution.resize(width,height)rgss_main { SceneManager.run }
UPDATE: anything above 640x480 has issue's when it comes to movies so trying to figure out if there is a way to center graphics because if so then all we'd need to do is make it center the video instead of using Graphics.resize_screen and it will work with any video does anyone know how i would go about getting it to center?
Last edited by a moderator:


