Jump to content

get sprite of group by my own property


Recommended Posts

Hello everybody!

I try to create first game on Phaser and have small question:

I create group of sprites, every sprite of them has my own property, for example sprite.myFunnyIndex
I want to get sprite by the value of myFunnyIndex.

I can create func like groupname.iterate (...), but i think may be Phaser have simple way to do this, for exaple groupname.getChildByProps(propsname, value)?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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