Having the window size half the game size

25 views
Skip to first unread message

Justin C.

unread,
Mar 20, 2016, 3:42:54 PM3/20/16
to HaxeFlixel
So this seems to work fine and well, making the window size in Project.xml something like 960x540

<window width="960" height="540" fps="60" background="#000000" hardware="true" vsync="true" />

And then making the game size 1920x1080 in Main.hx

addChild(new FlxGame(1920, 1080, CreditSplash, 1, 60, 60, true, false));

But you know what doesn't work fine and well? Using some of FlxG.camera's functions. For example, when using FlxG.camera.flash(); it will only flash a quarter of the screen (960x540 pixels) Sure, I can fix this sometimes by making the camera's size double, but that doesn't work all the time. Especially for PlayStates, where you have your player moving and all that good stuff. I was wondering if any of you knew a way of fixing this, or even if this is a good idea. If it's not, please throw a suggestion my way! Thanks!

Naruto AE

unread,
Mar 20, 2016, 5:13:48 PM3/20/16
to HaxeFlixel
First off, Neko is a little bit off with FlxCamera, try compiling as flash,
If the problem continues, try lowering the res "1920 x 1080" to "1280 x 720".

Other than that, I have no other advice, this may be a glitch or something,
or maybe they didn't count on people selecting huge resolutions or something,

if all else fails, I suggest trying to mess with the Flx.camera.flash(); function.

Justin C.

unread,
Mar 20, 2016, 5:20:36 PM3/20/16
to HaxeFlixel
I ended up making my own replacement classes and functions to replace what I need from FlxCamera. So.
Reply all
Reply to author
Forward
0 new messages