Metoria Games Programming: Targeting

RPG Hack Slash Game: Targeting


Today i created a targeting system for the player. This is done by a creating a target script where it mark the colour of the target that the player is selecting and change colour when the player selects the target. Also once the target is selected, the player can then attack the enemy(which are the cubes in this case) pressing the attack key and enemies health will deplete. This is a very useful feature and will come useful later on when the enemies models are introduced. Below are the examples of the cubes and the target script

Screen Shot 2016-12-13 at 16.25.54

Figure 1: Player Selecting which enemy to attack

Screen Shot 2016-12-13 at 16.26.58

Figure 2: Target Script