Jump to content

Finding a Sprites Group


Budda
 Share

Recommended Posts

I've built some Tetris like blocks using multiple sprites - and then grouped them.

I used the group setAll() to add input events to each sprite.

 

When a sprite is clicked i receive the event, but i'd like to act on all other Sprites in the same group.

 

I cannot seem to find a way of working out what group my clicked Sprite is in though.

 

If I cannot find the group from the clicked sprite -- is there a different way to group these block arrangements and receive their click to then delete the whole shape ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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