Game Development Reference
In-Depth Information
Selecting units in RTS
In this recipe, we'll show you how the selection of units in an RTS can work and also im-
plement functionalities to show you when a unit has been selected. We'll use AppState ,
which handles mouse selection and we will also create a new Control class to be used by
any spatial we want to be made selectable. In the recipe, Control will display a marker
at the feet of the selected spatial , but it can easily be extended to do other things as
well.
Search WWH ::




Custom Search