Showing content from https://medium.com/codex/making-a-rts-game-8-boosting-our-selection-feature-unity-c-8552bffd2f8b below:
Making a RTS game #8: Boosting our selection feature (Unity/C#) | by Mina Pêcheux | CodeX
Making a RTS game #8: Boosting our selection feature (Unity/C#)
Let’s continue our RTS game project: today, we’ll improve our selection mechanism! 9 min read
·
Apr 29, 2021
⬅️ Tutorial #7: Polymorphism, take 2! | TOC | Tutorial #9: Implementing character units and skills ➡️
📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!
A couple of weeks ago, we improved our UI and displayed more info on the buildings (with an info panel and healthbars).
Today, we’re going to continue on this topic and improve our selection mechanism — we’ll do three things:
- display the list of currently selected units: in order to better remember what we’ve selected, even if it is off-screen, let’s list the units at the bottom of the screen as little blocks!
- create selection groups: this is a nice way of switching between your units that many RTS provide
- show up info on the active selected unit: it would be nice to have some data and specific actions for a unit when we select unit
Displaying the list of currently selected units
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4