I thinke you must create an array with 36 numbers of roulette and add also the zero
aNumbers:=:= { 0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26}
control if I insert all numbers
Msginfo( aNumbers[ Int(nDegrees/36)])
I tried but not run ok
I not understood because each times the number is on different position
- Code: Select all Expand view
- function Spin( oImage )
local nStep := 5
local n
local nDegrees
Local aNumbers:= { 0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26}
for n := 1 to 1000 / nStep
oImage:Rotate( nStep )
SysWait( 0.005 * nStep )
next
nDegrees := oImage:nRotate % 360
Msginfo( aNumbers[ Int(nDegrees/36)])
* Msginfo( nDegrees)
return nil
any solution ?