Hey, I have got a question about click detection on game units. On the following screen you can see the hitbox of the archer (the cyan colored circle).
I believe it is too big to be considered as successful hit when user clicks it with the mouse. So I am thinking of three possible solutions:
- Leave it as it is. Even I don’t like it is one of the possible solutions
- Lightweight and super simple
- Very inaccurate
- Use several smaller circles for archer hitbox instead.
- Still kind of Lightweight and simple
- Might be a bit inaccurate
- Use Pixmap. I believe creating Pixmap every time I would need to check detect a click, so I would need to initialize it in the beginning and play around the initial version.
- Very accurate
- More memory required to represent the gfx
- Much more complex in comparison to previous solutions.
Would like to know your thoughts and maybe some tips of how you do it in your games.
Thanks, ww.