Determining what overlay object you clicked on? in Developer Help
|
|
After a good chunk of the last week figuring out what method works best for rendering a special part of my game, I finally got it nailed down.
However a new problem arises - I now have a central object with a ton of other objects added to it as overlays with various pixel offsets. I am using Click() to interact with these objects - however I need to differentiate between the objects when I click on them. The problem is that overlays automatically send the Click() back to the object they're attached to. (makes sense, they're just overlays right?)
Is there any clean way of figuring out what the user is clicking on, besides actually keeping a map of the various widths/heights of every object and their pixel offsets (effectively just creating an entire collision detection routine)?
Has anyone tried this?
~Polatrite~
|
Only (really messy) workaround I can think of is to not use overlays, but objects that just follow the player when they move.