If i have an image for each number 1-9 (1.gif,2.gif..etc) and lets say I have a variable called number. In the variable number a random number between 1 and 300 will be stored. Now the part I dont know how to do is how would I print a number out on the screen with my images instead of just a normal number print. I could do it with a one digit number probably but with 2 or more digits I have no clue. Anyone know?
This is a little thing I wrote that is like what I want but like I said only single digit numbers. This only gives a random number from 1 - 6. Obviously it wouldnt be very convenient to do it this way from 1 - 300
START:
CLS
number = RND(5)+1
LOAD IMAGE "1.bmp",1
LOAD IMAGE "2.bmp",2
LOAD IMAGE "3.bmp",3
LOAD IMAGE "4.bmp",4
LOAD IMAGE "5.bmp",5
LOAD IMAGE "6.bmp",6
IF number = 1 THEN PASTE IMAGE 1,0,0
IF number = 2 THEN PASTE IMAGE 2,0,0
IF number = 3 THEN PASTE IMAGE 3,0,0
IF number = 4 THEN PASTE IMAGE 4,0,0
IF number = 5 THEN PASTE IMAGE 5,0,0
IF number = 6 THEN PASTE IMAGE 6,0,0
SET CURSOR 0,200
PRINT "Random number chosen was " ; number
set cursor 0,300
PRINT "Type 1 to continue, 2 to quit"
INPUT continue
if continue = 1 then goto START
if continue = 2 THEN DELETE IMAGE 1 : DELETE IMAGE 2 : DELETE IMAGE 3 : DELETE IMAGE 4 : DELETE IMAGE 5: DELETE IMAGE 6 : END