i was wondering if someone could help me with this code in image, http://imgur.com/a/wsYPW
this is using a code from a youtube video tutorial on rts selection box, the problem with the code is he changing the sprites animation which isnt viable for as ive got to many animations to add selection box to and would mess up animations in progress.
the problem ive got with the code atm is not all demons are being selected unless i drag over them slowly and once they are selected if i decide to make selection box smaller they are all still selected, ive tried a few methods to fix this but nothing is really coming to mind can anyone help me please?
the selection box is 9patch if that means anything with the edges being tiled and filling being stretched middle of box is transparent