|
Hi I am stuck and pls need some help. My game is a wordsearch puzzle which has a progress bar. when the bar is filled, the game ends and the player is expected to have completed the game. The problem is that when the player clicks on the replay button the progress bar doesnt reset like a normer Timer would do. Any ideas pls?
(comments are locked)
|
|
Based on your previous information:
Based on your update with the link, I am guessing that you want it to be like this:
You can then control the bar by setting enabled = true when you want the bar to tick up, and call ResetBar() when you want it to reset (or just modify barDisplay, it runs between 0 and 1). Thank you for your response.I got help for the creation of my progress bar from this link:http://answers.unity3d.com/questions/4456. Maybe this could help. I did try something similer to your answer but still didn't get it to work.
Dec 07 '10 at 11:26 AM
Princess
thanks alot!!! It worked :-D
Dec 07 '10 at 03:41 PM
Princess
(comments are locked)
|

Some code would be helpful. How do you declare your progress bar variable, what do you do to reset the game, etc.?