OK, iv done what u said, but now i have a different problem.
my array looks like this...
`brick array
dim brick(numbricks,3)
brick(1,1)=100
brick(1,2)=20
brick(1,3)=0
brick(2,1)=140
brick(2,2)=20
brick(2,3)=0
brick(3,1)=180
brick(3,2)=20
brick(3,3)=0
brick(4,1)=220
brick(4,2)=20
brick(4,3)=0
brick(5,1)=260
brick(5,2)=20
brick(5,3)=0
brick(6,1)=300
brick(6,2)=20
brick(6,3)=0
brick(7,1)=340
brick(7,2)=20
brick(7,3)=0
brick(8,1)=380
brick(8,2)=20
brick(8,3)=0
brick(9,1)=420
brick(9,2)=20
brick(9,3)=0
brick(10,1)=460
brick(10,2)=20
brick(10,3)=0
brick(11,1)=120
brick(11,2)=40
brick(11,3)=0
brick(12,1)=160
brick(12,2)=40
brick(12,3)=0
brick(13,1)=200
brick(13,2)=40
brick(13,3)=0
brick(14,1)=240
brick(14,2)=40
brick(14,3)=0
brick(15,1)=280
brick(15,2)=40
brick(15,3)=0
brick(16,1)=320
brick(16,2)=40
brick(16,3)=0
brick(17,1)=360
brick(17,2)=40
brick(17,3)=0
brick(18,1)=400
brick(18,2)=40
brick(18,3)=0
brick(19,1)=440
brick(19,2)=40
brick(19,3)=0
brick(20,1)=300
brick(20,2)=60
brick(20,3)=0
brick(21,1)=100
brick(21,2)=80
brick(21,3)=0
brick(22,1)=140
brick(22,2)=80
brick(22,3)=0
brick(23,1)=180
brick(23,2)=80
brick(23,3)=0
brick(24,1)=220
brick(24,2)=80
brick(24,3)=0
brick(25,1)=260
brick(25,2)=80
brick(25,3)=0
brick(26,1)=300
brick(26,2)=80
brick(26,3)=0
brick(27,1)=340
brick(27,2)=80
brick(27,3)=0
brick(28,1)=380
brick(28,2)=80
brick(28,3)=0
brick(29,1)=420
brick(29,2)=80
brick(29,3)=0
brick(30,1)=460
brick(30,2)=80
brick(30,3)=0
brick(31,1)=120
brick(31,2)=100
brick(31,3)=0
brick(32,1)=160
brick(32,2)=100
brick(32,3)=0
brick(33,1)=200
brick(33,2)=100
brick(33,3)=0
brick(34,1)=100
brick(34,2)=40
brick(34,3)=0
brick(35,1)=280
brick(35,2)=100
brick(35,3)=0
brick(36,1)=320
brick(36,2)=100
brick(36,3)=0
brick(37,1)=360
brick(37,2)=100
brick(37,3)=0
brick(38,1)=400
brick(38,2)=100
brick(38,3)=0
brick(39,1)=440
brick(39,2)=100
brick(39,3)=0
brick(40,1)=300
brick(40,2)=120
brick(40,3)=0
and the code to draw looks like this...
for brick = 1 to numbricks
sprite 3, brick(brick,1), brick(brick,2), imagenumber
imagenumber = imagenumber + 1
next brick
However, when i run the program it says-
"Runtime Error 118 - Array does not exist or array subscript out of bounds at line 62"
line 62 is this line
sprite 3, brick(brick,1), brick(brick,2), imagenumber
Please help