|
-
May 3rd, 2005, 07:58 PM
#1
Thread Starter
Member
Craps Game
What would be the best way to make a craps game. Right now I need to figure out a way to use the random number generator to work so that whatever number it generates the picture of that number side for the die will appear for both dice. How might I do this?
-
May 3rd, 2005, 08:36 PM
#2
Thread Starter
Member
Re: Craps Game
I don't seem to be gettin much response, none for that matter, but I just need to know that when using a random number generator and the variable i assign the number of the generator to, how do I put an image to visible when a certain number is chose 1 - 6 for dice?????
-
May 3rd, 2005, 08:40 PM
#3
Re: Craps Game
why not have a label, then have it use the random number?
-
May 3rd, 2005, 08:45 PM
#4
Thread Starter
Member
Re: Craps Game
That is what I had at first but I need two pair of dice to show up instead of numbers, so when the RNG puts two numbers (1-6) 4 and 5, the four side of a die and a 5 side of a die show up.
-
May 3rd, 2005, 09:54 PM
#5
Re: Craps Game
You need an image for each of the numbers possible, and you can use the same image for both die. You generate random number for two die like this:
VB Code:
Dim d1 as integer, d2 as integer
randomize
d1 = int(rnd * 6) + 1 ' Choose a number between 1 and 6
d2 = int(rnd * 6) + 1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|