Float Value not changing?
Hi all, I'm having a bit of an issue. I'm trying to create a combo counter for my game, and when I use the normal attack (left click) the value increases. This seems to be working just fine, when I left click, the value goes up.
However, when I try with the counter, the value does not increase. The first image I have posted (The one that starts with the comment Warning to dodge), does not want to change the value. However, the TimeUntilAttack resets to the orignalTimeUntilAttack, the player teleports to the enemy, and the comboTimer resets to 5. But no matter what I do, the comboCount will not increase.
In the second image (The one that starts with the comment attacking), the comboCount increases perfectly fine. I'm a little bit lost here, and I think it has something to do with TimeUntilAttack, as that's the only reason the comboCount won't increase.
Answer by MMumble · Nov 19, 2016 at 06:47 PM
Just found the answer.
So I printed the time for the TimeUntilAttack, and I found out that because each of my enemy objects have a different value, for some reason they all add up together, so instead of having to wait 4 seconds, I would have to wait 30.
I am probably making no sense at all at this point, but I just thought I should say I figured it out :)
Your answer
Follow this Question
Related Questions
Random Generation (Dungeon) with improvements in mind. 0 Answers
How to use the results of a dice roll? 2 Answers
OnGUI will not show up? 1 Answer
My audio doesn't play, I'm through my options... 1 Answer
Need help with c# 1 Answer