J
Jeff Ciaccio
I am programming a "craps table", and I would like to randomize where the
dice land.
The first one is no problem. To fit on the "table" I have the following:
picDie1.Location = New Point(Rnd() * 469, Rnd() * 245)
The second die is a little harder. I don't want any overlap of the dice,
and the second die must also fit on the table. The horz. width of the dice
is 80, and the vert. ht. is 100. Any suggestions on this (game or animation
guys)?
I also cannot seem to find the syntax for changing the image. I have
imported the resources, so they are embedded, and they are named die1.bmp,
die2.bmp, die3.bmp, etc.
I tried picDie1.image = "die" &die1 'and tried converting die1 to a
string type.
Suggestions here??
Thanks!
dice land.
The first one is no problem. To fit on the "table" I have the following:
picDie1.Location = New Point(Rnd() * 469, Rnd() * 245)
The second die is a little harder. I don't want any overlap of the dice,
and the second die must also fit on the table. The horz. width of the dice
is 80, and the vert. ht. is 100. Any suggestions on this (game or animation
guys)?
I also cannot seem to find the syntax for changing the image. I have
imported the resources, so they are embedded, and they are named die1.bmp,
die2.bmp, die3.bmp, etc.
I tried picDie1.image = "die" &die1 'and tried converting die1 to a
string type.
Suggestions here??
Thanks!