GameStar Posted November 21, 2015 Share Posted November 21, 2015 I'm currently trying to make a Platformer using my Tilemaps & a Tileset I've made using Tiled, but everything I try doesn't work!! It was working perfectly fine with my old map & set but now with a new one I just put in nothing is working together, yet I have no idea why, any thoughts? > Preloader.jspreload: function () { this.background = this.add.sprite(0, 0, 'preloaderBackground'); this.preloadBar = this.add.sprite(400, 600, 'preloaderBar'); this.load.setPreloadSprite(this.preloadBar); this.load.spritesheet('button', 'images/button_sprite_sheet.png', 265, 98); this.load.tilemap('map', 'tilemap/level.json', null, Phaser.Tilemap.TILED_JSON); this.load.image('platforms', 'images/tileset.png'); this.load.spritesheet('hero', 'images/robo.png', 48, 72); this.load.image('gem', 'images/gem.png'); },Annd my level.json{ "height":12, "layers":[ { "compression":"zlib", "data":"eJztlTkWwCAIRLlzthOY5daZMlWeqAgmU\/ySkWXAJCI7OMAJLrARAiYwgwWsAfIZBau+tdZNott9i7pqNT3itX2zmkdrNO\/n9q22Ju94ax9GvbHeXoxGaT9K4qJ6guTzNsM\/7NbXPTzyXrfIo9TDEf7Jp5aXJyy94Hlfev6TOVq96o40A0IIGYEbQl2i3w==", "encoding":"base64", "height":12, "name":"Background", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJztkbERwCAMAz1HqvRkqIySURglo0GZRg4OTsP936nhhCywGQAAAAAAAADAGmxJys5DczqEitkpzi9155nbfbvyqRwv+00l2PXjDPdNgxk1cp7YPbVvRrb3r2p3o7O6757tqfzRXf252wY8Ojve", "encoding":"base64", "height":12, "name":"Water", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt1dkJgDAQBNBtz9sCPKINeFQg2LgTJOCnQpZVmQeD+UkYsqIiRERE9Aa1yJbiWZ3rWxLE78mQAikf7icdsefQIj3iIp2n7fpe5sZdNLhI5\/h7auR78w187866hAJnXeAlJmS2LvEx\/A\/\/W\/hOD8hoW4UULMhqXYLU7NYFSA75cg9C", "encoding":"base64", "height":12, "name":"Overlays", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJztlMcOwyAQREnv5ZB2SL2kHdIPaR\/Hp2eQbQUhFpvEllMY6QljvKbMsow5OTk5fa8yIAtyoACKPqU0F\/XlKjPGO15rpQqoghqogwZoKt+Ifgu0\/b7wT51LzH9R3nVBD\/TB4I21v7q3X9PcMCbfqTx73itxp4ZgBMZg4rdjqT8FM0M8de6Uvzq\/5hbj\/yZxHiWP0BzXnfkGbMEO7P12J\/UP4AhORLzNXIFUv84W46Zc\/ZQ7TtVFuQ5SiuIn9c0CLMEKrF9Yt028yV\/VT1Vh42H\/t5UuZ\/IKhQhxAqouTpm+Dsadn1dwA\/eE4+M8f53ezVWdgjVTUF7IcXjm4p1aF6k6mNT5JK2k\/RUKci0uBTlj8li3F+QXX3qxPEquOX\/Tk8ljU61AnvGoueb8TVdUnY5rH87fdEX5+wAouCFI", "encoding":"base64", "height":12, "name":"Main", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt08EJwCAUg+Ec3cEZOoDbdXR59FQoPTWC6f9dvAU0RgIAAAn6Jpl\/4Hi3w5CZ1u+q+zi6+Dqzi35Lk85xna8cnTolduu6U+Xu1m8a539N2wLu2G6u6pb95nra7gTZXAPH", "encoding":"base64", "height":12, "name":"Overlays Overlays", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt1EkKAjEQQNGg4DwdQFu9gPNKFw54gXY4gdP9b+AHEVxowBjTRagPD3pVHUgRY7RnBxyzPoTwllhhLXSerStuAf4jIdddTrHD3tM5fM+TUMid\/XSPrrt8whmXXw71x3kS8r2ztn2x3WPIPYu97cv3xjx2towKqqihjgaaaH0x23VfYnwbpdVGBwm66KGPHPIooIiSZYbrGxfj2yitAYYYYYwJpphhjkV2R9M0TdM0TdPedAfdcBWM", "encoding":"base64", "height":12, "name":"Trees", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt00sKACAIRdG22\/430KiJ9FGMUroHmhWoz0oB\/lDFQW6eDHdvM+yHtUa5\/94eI\/2nrHm+ml2EzLobtYx2P0r\/Wqt6Nf1k7Pk2OZ\/Z3ljmrZ25vE9WMfBvAAAAzmlQWhYn", "encoding":"base64", "height":12, "name":"Grass", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt1m0KgCAMgGHPlv2vY+T9L1CDBFnYx9I+3wcEsSmSc+Uc8A8+6be37QI4z2+HLOicL3EH0jUGw3yZE+Z+WAvEZzWZ8W5q\/ZUbUWJuPiUvc+8J5aR1VdczebbnDGLMkXpoqZ2oT86l9r+i5VsOAADwViMPDAjH", "encoding":"base64", "height":12, "name":"Flowers", "opacity":1, "type":"tilelayer", "visible":true, "width":120, "x":0, "y":0 }], "nextobjectid":1, "orientation":"orthogonal", "properties": { }, "renderorder":"right-down", "tileheight":32, "tilesets":[ { "firstgid":1, "image":"tileset.png", "imageheight":382, "imagewidth":600, "margin":0, "name":"tileset", "properties": { }, "spacing":0, "tilecount":198, "tileheight":32, "tilewidth":32 }], "tilewidth":32, "version":1, "width":120}Thank you to anyone that helps me with this... x_x I'm so stuck that i want to tear my hair out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.