Hello all, I am sorry for my poorly formulated topic.
Anyhow, I am trying to figure out how to “calculate” when a number hits 10, 20, 30, 40 etc.
And it must be a simpler and more clever way to do this instead of saying:
If (ComboMultiplier == 10){
DoSomething1();
}
If (ComboMultiplier == 20){
DoSomething2();
}
If (ComboMultiplier == 30){
DoSomething3();
}
The ComboMultiplier adds a number (combomultiplier += 1) when you do a successful attack on a enemy.
And I want the combo number flash on the screen every 10th successful attacks in a row. (I have a working code for the combomultiplier, so don’t you worry about that )
In advance, thanks!
Simon