- Home /
making a timed kill combo counter
Hey dudes. So I'm wanting to create a combo/kill counter that works on a timer and displays a bar (will be a burning cigarette) that reduces as time runs out and resets to zero and vanishes when it fully depletes.
Something like in the Arkham games or Bloodroots where you get a display of the number of enemies defeated in quick succession; this element has a bar or similar that runs down - if you defeat another enemy before the timer ends the bar refills and the combo count gets a ++.
I get the basic code would be to add to the counter during the enemyDeath() method, start or restart a coroutine each time and checking where the combo is at to either show/hide the counter, to +1 to the number displayed or to reset it to zero. I'm struggling to work out how to display the UI properly and the best way to code the coroutine to be able to restart it etc.
Your answer

Follow this Question
Related Questions
Issue with timer in combo attack 1 Answer
Rounding Numbers not consistent??? (C#) 1 Answer
How to convert a Mouse Input Combo System to Button? 1 Answer
Game Over Text When Timer Ends 2 Answers
4.6 combo/dropdown box 2 Answers