After some debugging I have found that advanced-layout uses a default scale setting where it sets the reference screen size to 800x600 no matter what window size you set for your game. The solution is to create a new instance of Layout and Scale with proper width and height, then set the layout to our custom one. It didn't take me very long time to figure that out but I wish there was a thing about it in advanced-layout documentation so I could spend that time more productively.
Posts made by niceneasy
RE: Understanding layouting with advanced-layout
Understanding layouting with advanced-layout
@player_03 I'm testing layout building with the advanced-layout lib and I'm having problems understanding few things. First of all when I'm using
The scaleMode of the app changes to PixelPerfect or Fixed, i'm not sure but it certainly is not the default Ratio mode. There is nothing about that in the documentation.
Moreover I have created two FlxButtons in the state and I want one of them to scale with the screen so i invoke the
The effect however is that the button with the simpleScale is initially scaled down instead of being the same size as the other button without simpleScale. If I enlarge the window the button scales up but only up to a certain point.
Can someone or @player_03 help me understand why flixel objects scale that way?
Android Prevent BACK button default action
Is there an easy way to prevent the default BACK button action on Android? It used to be:
FlxG.android.preventDefaultBackAction = true;
After an upgrade this no longer works and there is no info on any alternative ways. The documentation is also missing info on how to handle Android buttons in general.
Submarine Duel for Android, iOS and Amazon.
Check out my first game created with HaxeFlixel - Submarine Duel.
It's a game for two players where you try to push mines on your opponent. It has been released some time ago but I finally decided to let you all know about it. Enjoy!
Google Play: https://play.google.com/store/apps/details?id=com.uglypixels.submarineduel
App Store: https://itunes.apple.com/us/app/prank-pack/id1081035768
Forgot to upload a screenshot