Game design: Time Bar design (Fail)

Game design: Time Bar design

After the game planning discussion, one of my teammate subject we should make a time bar for the game. We make a time period for player to run away from the forest and if time out, the character control by player will died. And I had volunteered to do this job. After my research, I had nearly finished, but there are some problem (sure there is some wrong with coding) in it, so we decided to turn it down.

Photos below are the time bar I had been try to do.



First I had create a canvas and three circle I had found in Unity. To make the bar look like dropping, I had use the filling skills for the image (1 is whole circle and 0 is noting). To make it work, we need to use coding.



To start I had create 3 public keyword and 2 private keyword, which can line object and the codes.

[SerializeField] is use for serialize a private field.

I had create a function call TimebarLeft, It use for control all the object (how it running, calculation, object activity).

For the reason of the bar is not running, I sure the problems are from Line 16 and 17. Although I keep try to let it work, the unity still find a error make the tool can't work.



As the list above, I had link up object and code and set up the time bar's current amount and the running speed, so I pretty sure error are from coding.

Reason of the tool is not function,  our group had drop this idea.
 


留言