Question Concerning Taps

Local obj = event.target triggers a tap event for the object (that is how I am using it), and the tap keeps going. So the background would be deleted too. so if I tap an object at 25 coordinates in the X and 100 in the Y the background receives the tap event as well…

Unless I add Return true.

My question is, what exactly is “return true” saying? I guess I am asking for clarity as to what it actually chages/does…

I know it works, but I don’t know why.

I hate knowing and using something that I dont understand, even if I know WHEN to use it in code…I have had some people tell me “who cares, you know when to use it, so what’s the problem?”

The problem is I dont understand the WHY…Why does it work? Maybe I am overthinking it, but that’s how I learn. What is it actually saying?  Can anyone break down for me in english why it works and what it is actually doing?

Thank you.

The system asks, “Has that event been taken care of by someone? Anyone? Anyone? Bueller?”

And if nobody says, “True, dat!” then the system sends the event on to the next listener – until someone is willing to take responsibility for that event. Or until there’s nobody left to send the event to.

 Jay

Bueller? Ferris? lol…Thanks I understand it now. Appreciated. :slight_smile:

The system asks, “Has that event been taken care of by someone? Anyone? Anyone? Bueller?”

And if nobody says, “True, dat!” then the system sends the event on to the next listener – until someone is willing to take responsibility for that event. Or until there’s nobody left to send the event to.

 Jay

Bueller? Ferris? lol…Thanks I understand it now. Appreciated. :slight_smile: