I'm making a lil game, it'll be in 2D. And Sometimes, people have to select objects from a list (here : food).
I got the list in a file, and the file is readable with the instructions below :
OPEN TO READ 1,file$
READ WORD 1,number
FOR x = 1 TO number
READ STRING 1,aliment$
READ WORD 1,nombre
PRINT aliment$ , " : " , nombre , " kcal"
NEXT x
CLOSE FILE 1
number is the number of food-items
aliment$ is the food-name-item
nombre is the number of calories of this food
But my problem was here :
number became to big, so all food-items couldn't be displayed anymore on the screen. That's why I'm asking how I could make some kind of scrollbar.
(Rem - there will be a bitmap on the background, so it shouldn't delete what's behind it)
"Begin at the beginning, and go on till you come to the end: then stop." - Lewis Carroll