|
Axe Software Forums
Games and Chat Visual basic & friends
|
Author | Topic: Visual basic & friends |
Jim Jones |
posted 18-01-2003 03:58 GMT
quote: |
Computer Whizz |
posted 18-01-2003 18:52 GMT
Is there any explaination about putting your post in a [ quote ] box? To solve your problem just have it so that when the dice "lands" on 1 set off a bit of code... here you go: Private Sub Form_load() Randomize End Sub Private Sub cmdDice_click() intDiceRoll = Int(6 * Rnd + 1) If (intDiceRoll = 1) then End Sub Now obviously where #execute code# is, you'd have it so it moves your UFO around, or prints out some text - or whatnot. Computer Whizz |