Evolution prototype V.0.6 Tower selection
Tower stats
the next mechanic implementation I put into the game was the Tower selection mechanic. This mechanic work when players place down the tower onto the grid layout and when they exited the build menu they could select the towers simply by clicking on. this would then bring up a box around the tower indicate you have been selected and also will bring up statistics about the tower is currently selected to the left of the screen.
Basic tower script upgrade
This is so the player can see the current stats of the tower and when the upgrade feature is implemented to the game earlier to see the changes that will happen to the stats of the tower.
the way this feature works is that it attaches the UI to the tower when it is instantiated and keeps invisible in the background once the player selects the tower this UI becomes visible displaying all of the current stats of the tower and when the stats change so does the UI text this script you users text objects in order to display and has to be dropped and selected onto this script in order to use the text to display the information.
Over the way the script works in which the player can select a tower works off this script alone the selection text which means that only want out to be select the time the way it works is that when that I was selected the tower is selected variable is equal to true an end when the selection mood is equal to true the tower can be selected and once the player deselect these towers both of these variables tend to false meaning attends off the UI information giving the appearance that it has disappeared.
No comments:
Post a Comment