if (questionmade.radioButton3.Checked == true)
{
MessageBox.Show("That answer is correct.");
this.Show();
if (questionmade.rightButton.Checked == true)
{
MessageBox.Show("You chose to take the right path.");
pickaxe.Location = new Point(trunk[2].Right[0].X, trunk[2].Right[0].Y);
}
if (questionmade.leftButton.Checked == true)
{
MessageBox.Show("You chose to take the left path.");
pickaxe.Location = new Point(trunk[2].Left[0].X, trunk[2].Left[0].Y);
}
}
else
{
MessageBox.Show("That answer is incorrect.");
while (questionmade.radioButton3.Checked == false)
{
if (formon == false)
{
questionmade.ShowDialog();
formon = true;
}
}
if (questionmade.radioButton3.Checked == true)
{
MessageBox.Show("That answer is correct.");
this.Show();
if (questionmade.rightButton.Checked == true)
{
MessageBox.Show("You chose to take the right path.");
pickaxe.Location = new Point(trunk[2].Right[0].X, trunk[2].Right[0].Y);
}
if (questionmade.leftButton.Checked == true)
{
MessageBox.Show("You chose to take the left path.");
pickaxe.Location = new Point(trunk[2].Left[0].X, trunk[2].Left[0].Y);
}
}