thank you all! I fixed the issue by setting using camera.setScale().
Posts made by chengt4
How to place loaded TileMap at screen center?
I have been struggling with setting my tile maps at the center of the screen. Currently, all my tiles map were loaded onto different location of my screen, and I am unsure why (some levels will have upper left corner at (0, 0), some will start at the center of the screen, etc.).
Since all of my maps are of different dimension, I wish to find a way to get the width of the map and adjust other components like HUD accordingly, and maintain the correct entities offset when the map is moved to the center......
I have tried using .screenCenter() on my map, which does something totally weird.
I also tried to get the width of the background layer of my levels, but I don't know if there is a function to set the position of FlxTileMap.
Any insights are super appreciated!!
Type not found : FlxText
I just got started with Flixel, and I'm already encountering an issue with the "Hello World!" tutorial. (http://haxeflixel.com/documentation/hello-world/)
So I followed the steps (using sublime text on Mac OS X) by adding the line with FlxText, but when I tried to compile the project with flash/neko/html5 I got this error:
source/PlayState.hx:9: characters 10-17 : Type not found : FlxText
I installed everything, and tried downgrading lime to 2.9.1 and openfl to 3.6.1.
Any insight on why the library doesn't seem to be working?