Layered Event Handlers

I have a game in development that has 3 displaygroups currently.

  1. The background

  2. The map

  3. The GUI

I have roughed my way through a bit of it, but throughout the entire project, I’ve had trouble with touch events that include more than one object. (i.e. if I touch one of the tiles on the map, it touches 1-2 tiles as well as the background)

What is the best way of handling this situation?

I can provide screenshots and code if necessary. Thanks in advance!

http://docs.coronalabs.com/api/type/Event.html

http://www.coronalabs.com/resources/tutorials/events-and-listeners/

You must return true if you want to stop touch event from propagating to deeper layers/objects

http://docs.coronalabs.com/api/type/Event.html

http://www.coronalabs.com/resources/tutorials/events-and-listeners/

You must return true if you want to stop touch event from propagating to deeper layers/objects