I didn’t quite know what the best place for this would be but it is pertinent to what is discussed in this lecture.
Can you add larger numbers to For Loops say:
for(int lifeScore = 3000; lifeScore < currentScore; lifeScore += 3000)
{
GainLife();
}
Once the current score hits the lifeScore it just keeps giving more lives every time the score increases. I added a Debug.Log before “GainLife” and the value of lifeScore does not change every time it loops, in fact it does not change at all. Can you not do something like this with For loops?
What I want to do is that every 3000 points you gain a life. If this is not the way to do it, what would be the best alternative?
Thanks in advance!