danteAGAIN Posted June 5, 2017 Share Posted June 5, 2017 Hello everyone, I need help, i want display an element of a tileset, but i don't understand how to do that. function preload() this.game.load.image('stone', 'assets/tiles/tiless.png'); function create() this.stone = this.game.add.image(720, 78, 'stone'); i guess , i need a key or other but i don't understand how write and found this key. my tileset is 32*32 Link to comment Share on other sites More sharing options...
samme Posted June 5, 2017 Share Posted June 5, 2017 // @preload this.load.spritesheet('stone', 'assets/tiles/tiless.png', 32, 32); // @create this.add.image(X, Y, 'stone', FRAME); Link to comment Share on other sites More sharing options...
danteAGAIN Posted June 5, 2017 Author Share Posted June 5, 2017 thx you man ^^ Link to comment Share on other sites More sharing options...
Recommended Posts