- Joined
- Jan 21, 2016
- Messages
- 12
- Reaction score
- 2
- First Language
- English
- Primarily Uses
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
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;
Last edited by a moderator: