i am currently making an rts game, but when i added a selection box for selecting troops, there became massive fps lag.
So basically i am asking for some code to create a click-and- drag box, because i must be doing something wrong.

Thanks


One day there will be an unfixable bug,
That day is not today.