title: Game Lives Counter
body: <p>I am trying to make a basic video game based on answers! If you get the right answer, you go to the next level(form), if you are wrong you get to the next level but you lose a life. Basically, I have a label that has the number &quot;3&quot; as a .Text parameter, I store the labelLifes.text in an integer so I can work with it. If you press the wrong button, integer goes integer--; But the problem is that when the next level(form) shows up, I try to get that integer value so I can display it on my new form, it says 3 even if I choose the wrong answer. I've tested it, in the first from it goes to 2, 1 and eventually 0 but in the next form the numbers resets to 3. Why is that?</p>
  <p>Level1</p>
  <pre><code>&gt; public void label3_Click(object sender, EventArgs e)
  &gt;         {
  &gt;             //wrong answer -1 soul
  &gt;             Thread.Sleep(200);
  &gt;             score--;
  &gt;             labelSouls.Text = score.ToString();
  &gt; 
  &gt;             Level2 l2 = new Level2();
  &gt;             l2.ShowDialog();
  &gt;             Hide();
  &gt;         }
  &gt; 
  &gt;         public void label2_Click(object sender, EventArgs e)
  &gt;         {
  &gt; 
  &gt;             //right answer
  &gt;             Thread.Sleep(200);
  &gt;             Level2 l2 = new Level2();
  &gt;             l2.ShowDialog();
  &gt;             Hide();
  &gt; 
  &gt;         }
  &gt; 
  &gt;         public void label1_Click_2(object sender, EventArgs e)
  &gt;         {
  &gt;             //wrong answer -1 soul
  &gt;             Thread.Sleep(200);
  &gt;             score--;
  &gt;             labelSouls.Text = score.ToString();
  &gt; 
  &gt;             Level2 l2 = new Level2();
  &gt;             l2.ShowDialog();
  &gt;             Hide();
  </code></pre>
  <p>Level 2</p>
  <pre><code>private void Level2_Load(object sender, EventArgs e)
          {
              Level1 l1 = new Level1();
              score2 = l1.score;
              label2.Text = score2.ToString();
              label1.Hide();
              label2.Hide();
              textLVL2 = labelLVL2.Text;
              len3 = textLVL2.Length;
              labelLVL2.Text = &quot;&quot;;
              timer1.Start();
              player.Play();         
          }
  </code></pre>