Drag to make box in RTS?

Hi, everyone. I was wondering if someone could help me out on making a selection box when you drag the mouse from point A to point B. I'm working on an RTS, so I want the player to be able to select multiple units.

Thanks in advance!!! :)

3 Answers

3

There's some code for making a selection box on this page. Even if you use some other technique for drawing the box, the general concept still applies.

Found this on youtube, pretty simple and straight forward selection tutorial. - YouTube

I judt answered a question I posted awhile ago.