Hello,
what is the common way to detect clicks on some Drawable object and attach events to it?
Do I need to get the coordinates of the mouse, see if some of the drawn objects are captured by them, discover which one is the foreground, and do something ?..
how to detect clicks on Drawable images?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 6
- Joined: Tue Jul 06, 2010 1:32 pm
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: how to detect clicks on Drawable images?
There's no cookie-cutter method to check whether or not you have clicked on an image - since it's only a graphic, not necessarily a game object. In other words, you need to write your own methods to do all that.
I had a similar problem some time ago. You can see the available solutions here: viewtopic.php?f=3&t=1502
I had a similar problem some time ago. You can see the available solutions here: viewtopic.php?f=3&t=1502
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests