Game Development Community

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

#1
06/25/2010 (10:35 am)
Try this resource: http://www.torquepowered.com/community/forums/viewthread/77324

It might be what you're looking for. Make sure you purchase the product, though.
#2
06/25/2010 (11:17 am)
Thx! Looks really what I'm looking for!