panovsky Posted February 28, 2014 Share Posted February 28, 2014 hi allI have some item in some group.How can i find parent group of my item and index of item in this group? Link to comment Share on other sites More sharing options...
rich Posted February 28, 2014 Share Posted February 28, 2014 In 1.2:var index = yourSprite.parent.getIndex(yourSprite);Should work in 1.x as well but may have to replace 'parent' with 'group'. Link to comment Share on other sites More sharing options...
panovsky Posted February 28, 2014 Author Share Posted February 28, 2014 thank youconsole.log(item.group.getIndex(item));working Link to comment Share on other sites More sharing options...
Recommended Posts