daniel0514 Posted April 28, 2015 Share Posted April 28, 2015 hi, i have this design where i want to add some coins to the game in some specific positions (see image) what is the best way to do that? I tried creating a group but it just shows once and when i grab the coins i don't know how to create more of them I'd really appreciate any help with that! thanks in advance Link to comment Share on other sites More sharing options...
Miniversal Posted April 28, 2015 Share Posted April 28, 2015 I'm still pretty green with Phaser but I believe what you want to look into are called TileMaps. There are even software packages that allow you to generate them. For example: http://www.mapeditor.org/ or http://gamequeryjs.com/tools/tilemapeditor/ Hope this is helpful jdnichollsc 1 Link to comment Share on other sites More sharing options...
MichaelD Posted April 28, 2015 Share Posted April 28, 2015 When you "grab" the coins do you remove them from the game? You can have a group with several sprites and call .kill() on them when you "grab" them. Then call var coin = group.getFirstDead();coin.revive();This is basic recycling so you don't need to create more just re-enable the initial ones. Link to comment Share on other sites More sharing options...
Recommended Posts