webdeveloper_issy Posted November 10, 2014 Share Posted November 10, 2014 I am creating an 2d tilegame with sometimes an huge map of tiles with different levels.Currently the game handles the tilemap(.json) as follow:- Download tilemap(.json). - loop through the map multidimensional array and addChild to displayObjectContainer each x,y have multiple layers so loop through x,y layers array and draw on the same x,y coordination. - When the viewport changes al the tiles that are not within the viewport are set to visable=false and the ones that are new in the viewport are set to visable=true. Is the performance influenced by child's that are set to visable=false?If so, what other techniques can I use to make an fast tilegame? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.