I have 5 dice labels and I have a method Roll() that sets thier text value. At the moment when the roll method happens it just makes the numbers appear, but i would like them to look like they are rolling. So i would like them to look like they are rolling through a set of numbers then stop on a number. here is what i have
//Roll() simulates the rolling of this die.
public void Roll()
{
if (Active) {
faceValue = random.Next(1, 7);
label.Text = faceValue.ToString();
}
}
Aucun commentaire:
Enregistrer un commentaire