I want to know how can I level up the player (add 1 to the global variable Level) on every 5 kills?
What about on every 5 + (level * 2) kills?
For example if I am level 0 I only have to kill 5 enemies.
Next, I am level 1, so it should be 5 + (1 * 2) = 7 enemies.
Level 2, 5 + 4 = 9 enemies.
How can I do this?
I try to add to the global variable one, but it seems like it adds one on every single tick not just once.
Update: This got fixed, but a new problem is described below.