Zoom auto reset with Neko Target after Alt-Tab

11 views
Skip to first unread message

Viperace

unread,
Aug 16, 2015, 10:18:24 AM8/16/15
to HaxeFlixel
In the main.hx file, 
my gameWidth and gameHeight is set at 1600x2000 in size, quite big.
Fullscreen to yes.

I then set camera.zoom = 1.5 in the playState. All is fine until I alt-tab out, and then tab back in. The zoom will reset, and I will be looking at my full game map 1600x2000 in my screen. The same is happening to the Tutorial project as well, any solution?


SruloArt

unread,
Aug 16, 2015, 10:37:39 AM8/16/15
to HaxeFlixel
* Probably something to do with the scaleMode, try some other modes to test.

* Also, it would help to have a small test project here (unless you're not using the dev branch, then I would ask for more information, like does it happen on other targets, what's the resolution in the project.xml, what are your libraries versions, have you made any changes to the FlxGame [there's an event.resize firing every frame, so this shouldn't happen AFAIK], did you try to debug your game or trace the zoom level? ...and really whatever useful info you can think of).
Reply all
Reply to author
Forward
0 new messages