Jump to content

display an element of a tileset


danteAGAIN
 Share

Recommended Posts

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

terrain.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...