Dobrado Posted September 2, 2014 Share Posted September 2, 2014 Hi! I'm trying to make a game like pac-man, but how I can populate coins in the level? I already have a map: http://i.imgur.com/OLUpNhV.png But I need the coins appears only inside the walls. Can I user anything like "json tilemaps" to do this? And sorry about my very bad english. xD Link to comment Share on other sites More sharing options...
rich Posted September 2, 2014 Share Posted September 2, 2014 Yeah I would use a Tilemap and place the coins in that. The original Pacman game used an 8x8 sized grid iirc with the 'dots' being 1 tile in size. You can use Tilemap.createFromObjects to convert Tiled objects into Sprites. Link to comment Share on other sites More sharing options...
Dobrado Posted September 3, 2014 Author Share Posted September 3, 2014 I generate this json: http://pastebin.com/seJEUXv6 But what is the correct params?I'm tried this: moedasWorld = this.add.tilemap('moedasWorld');moedasWorld.createFromObjects('icon-moedas', 18261, 'Moedas',0, true, false, coins); without sucess. :/ Link to comment Share on other sites More sharing options...
Recommended Posts