Results 1 to 5 of 5

Thread: Craps Game

  1. #1

    Thread Starter
    Member m0ney$'s Avatar
    Join Date
    Apr 2005
    Location
    Michigan
    Posts
    58

    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?
    Nick

  2. #2

    Thread Starter
    Member m0ney$'s Avatar
    Join Date
    Apr 2005
    Location
    Michigan
    Posts
    58

    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?????
    Nick

  3. #3
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Craps Game

    why not have a label, then have it use the random number?

  4. #4

    Thread Starter
    Member m0ney$'s Avatar
    Join Date
    Apr 2005
    Location
    Michigan
    Posts
    58

    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.
    Nick

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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:
    1. Dim d1 as integer, d2 as integer
    2. randomize
    3. d1 = int(rnd * 6) + 1 ' Choose a number between 1 and 6
    4. 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
  •  



Click Here to Expand Forum to Full Width