Results 1 to 2 of 2

Thread: simulate die cast

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Location
    ibadan nigeria
    Posts
    17

    Smile simulate die cast

    i have a little problem with a project ;it's a ludo game.i am almost through with it,the problem i have is to simulate the throwing of the die,as in making it roll.i am not well vast in game coding, just a kid.can you help ?

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    VB Code:
    1. Randomize Timer
    2. DieVal = Int(Rnd * 6)+1
    3. 'DieVal now contains a simulated die throw result
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


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