Sg1team Posted April 17, 2014 Share Posted April 17, 2014 Hi, I would like to create a top-down strategy game with multiple z levels (to dig tunnels into the ground).How can I achieve that with Phaser? I need multiple tilemaps that the user can switch between. The units (sprites) should only be visible if their respective z-level is active. Sprites should also continue to move if their z-level is currently not visible. Thanks in advance! Link to comment Share on other sites More sharing options...
Sg1team Posted May 18, 2014 Author Share Posted May 18, 2014 Does nobody have any idea for me with that topic? Thanks in advance ;-) Link to comment Share on other sites More sharing options...
jpdev Posted May 18, 2014 Share Posted May 18, 2014 You could try this: Put your sprites in groups, one group for each layer. Make the layer and the group for the current level visible.Set the other layers and groups to visible false. If a sprite digs down (or up) move it from one group to the other. xkorikx 1 Link to comment Share on other sites More sharing options...
Sg1team Posted May 19, 2014 Author Share Posted May 19, 2014 Thanks, that helped me a lot! Link to comment Share on other sites More sharing options...
Recommended Posts