How to detect a mouse click on a sprite?
by Mike Jensen · in Torque X 2D · 07/10/2007 (6:55 pm) · 5 replies
Hi
I'm looking for a way to detect when the user clicks on a sprite with the mouse. Can anyone advise how to do this please ?
Thanks
Mike
I'm looking for a way to detect when the user clicks on a sprite with the mouse. Can anyone advise how to do this please ?
Thanks
Mike
#2
07/10/2007 (7:12 pm)
Thanks Thomas
#3
07/10/2007 (7:13 pm)
Ok, I can't find the post, but I found this other post about how to get the mouse position in world coordinates. You can then use that position to do a scene container query for a list of objects at that location.
#4
07/10/2007 (9:29 pm)
Thanks again!
Torque Owner Thomas Buscaglia