- Home /
Question by
_C1 · Jun 29, 2014 at 02:57 PM ·
scorelevelscore system
New score each level
Hey guys,
I am making a 2D platform game. When the player scores 100 they go to the next level. When I get to the next level it ends straight away and goes to the win screen. This is because the score is 100 as soon as you start the new level.
I do not know how to fix it. Could anyone help me please?
Thanks.
Comment
Answer by Jeff-Kesselman · Jun 29, 2014 at 02:58 PM
Use a static field.
If you don't know what a static field is, google "C# static field" and read.