05-12-2023, 04:24 PM
(05-12-2023, 03:09 PM)bplus Wrote: Ah! a little fix:
Code: (Select All)Function rolld6 (px, py)
'simulate "rolling" a die by calling asciidie repeatedly
dr = Int(1 + Rnd * 6)
For x = 1 To 6
'_Limit 100
dr = Int(1 + Rnd * 6)
asciidie px, py, dr 'displays score dr as a die starting at px,py
_Delay .15
Next x
rolld6 = dr
End Function
definitely works; that delay is agonizingly slow to look at for me if I put it in a game but probably works better in a demo like this.