A downloadable asset pack

Download NowName your own price

This Real-Time Strategy Selection Tool is a simple asset that can be easily imported into any project. As visualized through the screenshots and gifs in the side bar, you can see that this asset creates a clean and simplistic mouse-drag selection tool. The current build allows you to customize the box color, box alpha values, border line colors, and border line alpha values. In addition, you can specify which objects you want to select specifically and which objects you want to ignore while dragging. In the first gif, the selection tool is set to only select the red square objects, whereas, in the second gif, the selection tool is set to select both the red and the green objects. You can get a quick glimpse at what values are customizable in the oSelectionTool Create Event, shown in the code screenshot. With a few quick changes, this tool allows you a lot of flexibility and customization for your own implementation into your RTS game, or any other game that could utilize a drag selection. This download gives you access to all of the source code, including 7 unique scripts, 3 placeholder sprites, and 4 objects. Most of these assets are to be deleted and replaced in your implantation. You also get clear and concise commenting that will help guide you through understanding how each component works.

UPDATE: As of 08/19/18 I have included the ability to add dashed lines. There are two settings for dashed lines, one with a fixed number of dashes, and the other has a fixed size per dash. See the code for more information.


Download NowName your own price

Click download now to get access to the following files:

rtsClickAndDrag.zip 84 kB
rtsClickAndDrag.yyz 39 kB

Leave a comment

Log in with itch.io to leave a comment.