RPG Maker Forums

I am having an issue with a script I'm working on, I am trying to call the x and y variables to set the screen resolution, and now my brain is hurting after a little while of editing and re editing, and searching online for any way to pull this off.


I am using Yanflys Core Engine with a resolution set at 1360x768, and I suspect that may be part of the issue, but I am unsure of how to do this with that script.


//Sets variables and calls those variables to functions in order to select screen resolution
var x = 1024;
var y = 768;
//
(function() {Graphics.width(x);})();
(function() {Graphics.height(y);})();
(function() {Graphics.boxWidth(x);})();
(function() {Graphics.boxHeight(y);})();


I am able to change resolution in game by adding the following to an event

Code:
Graphics.width = 1024;
Graphics.height = 768;
Graphics.boxWidth = 1024;
Graphics.boxHeight = 768;

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,578
Members
137,843
Latest member
Betwixt000
Top