Calling onMouseDown() by overlapping sprites?
by shadowcode · in Torque Game Builder · 06/25/2010 (8:33 am) · 2 replies
Hi!
I have a problem. I have two overlapping sprites, both of the same class. If I click on on sprite, I only want call the callback onMouseDown() on the first sprite and if the first sprite doesn't want handle the event the callback of the next Sprite should be call. But at the moment I have no idea how can I achieve this? Has anyone a hint?
Many thanks and best regards
I have a problem. I have two overlapping sprites, both of the same class. If I click on on sprite, I only want call the callback onMouseDown() on the first sprite and if the first sprite doesn't want handle the event the callback of the next Sprite should be call. But at the moment I have no idea how can I achieve this? Has anyone a hint?
Many thanks and best regards
About the author
Torque 3D Owner Daniel Balmert
Default Studio Name
It might be what you're looking for. Make sure you purchase the product, though.