Jump to content

add.group()


m2jalali
 Share

Recommended Posts

hello

i am trying to build concentration Game.

but I can not add listener event(mouseDown and touchDown) to tilesprite

my custom code :

 this.load.atlasJSONArray('images','assets/images.png','assets/images.json');

this.bunnygroup = this.add.group();
this.bunnygroup.enableBody = true;
var tile = this.bunnygroup.create(0,0,64,64,, 'images', 7);

 

How can i MouseDown listener to tile??

 

another question

why i used images.png and images.json not working ?

 i attach those files ...

when i use example files that is ok

but when replace my files not workong

 

images.json.txt

images.png.txt

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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