David Posted September 5, 2014 Share Posted September 5, 2014 In short, I want to get all the sprites at a given point. Currently, I'm getting the bounds of my sprites and testing if that Rect contains that point. I'm browsing through the code to see if there is a method on "Group" or something that I might be missing that already does this. Any ideas? If not, I can probably figure out a good place for it and do a pull request. Link to comment Share on other sites More sharing options...
eguneys Posted September 5, 2014 Share Posted September 5, 2014 Here are some group methods that operates on all it's children callAll, forEach, iterate, setAll, addAll, subAll. Link to comment Share on other sites More sharing options...
lewster32 Posted September 5, 2014 Share Posted September 5, 2014 The way you're doing it is basically the correct way to do it - check the bounds of all of your sprites to see if they contain the specified point. Link to comment Share on other sites More sharing options...
Recommended Posts