1 decade ago by OMATASE
I want to make a target selection feature, where a player can click on any one of 8 entities to choose that particular entity as a target for an action.
I'm not sure if creating a target selection entity / HUD is the best way to go about this but it is the best method I can think of.
The idea is that during target selection mode additional HUD elements would appear on the screen. One of the HUD elements would be like a "select all" button that would appear above all target entities. Instead of the "select all" button, they could click on an individual targetable entity as well.
In other game modes (not the target selection mode) it is possible to select certain entities but not all. During target selection you will be able to target virtually all entities so I need some way the entities can discover whether I'm in target select mode or not so that they will make themselves clickable. I also want all available targets to glow or light up when in target select mode, I'm not sure how I'll do that. I want the target selection entity to know which entities are valid targets, I don't want the targets themselves to have to know that. It would be cool if the Target Selection Entity to find relevant target entities and call a method on them telling them to glow. That way the logic stays in my target selection entity.
Any help is much appreciated.
I'm not sure if creating a target selection entity / HUD is the best way to go about this but it is the best method I can think of.
The idea is that during target selection mode additional HUD elements would appear on the screen. One of the HUD elements would be like a "select all" button that would appear above all target entities. Instead of the "select all" button, they could click on an individual targetable entity as well.
In other game modes (not the target selection mode) it is possible to select certain entities but not all. During target selection you will be able to target virtually all entities so I need some way the entities can discover whether I'm in target select mode or not so that they will make themselves clickable. I also want all available targets to glow or light up when in target select mode, I'm not sure how I'll do that. I want the target selection entity to know which entities are valid targets, I don't want the targets themselves to have to know that. It would be cool if the Target Selection Entity to find relevant target entities and call a method on them telling them to glow. That way the logic stays in my target selection entity.
Any help is much appreciated.