05-09-2003, 05:27 AM
I'm getting a subscript out of range error
I made 44 tiles in your program all of them weir 8x8.
I included the link to the file just in case you needed to make sure. I didn't think you'd actually run it.
One more thing just make sure, becuase I'm just a tad bit unclear on the subject of how you insert the sprite.
PUT (x,y),sprite(0,whatever sprite needed), PSET
What puzzles me, is the zero. Will it always be a constant zero whenever I call up a sprite?
Code:
SCREEN 13
CLS
DIM sprite(65, 43)
OPEN "SASUKE.TIL" FOR BINARY AS #1
length = LOF(1) - 768
FOR sprt = 0 TO (length / 66) - 1
sprite%(0, sprt) = 64
sprite%(1, sprt) = 8
FOR byte = 2 TO 33
GET #1, (sprt * 66) + (byte * 2), temp%
sprite%(byte, sprt) = temp%
NEXT
PUT (sprt * 18 + 1, 150), sprite(0, sprt), PSET
NEXT
I made 44 tiles in your program all of them weir 8x8.
I included the link to the file just in case you needed to make sure. I didn't think you'd actually run it.
One more thing just make sure, becuase I'm just a tad bit unclear on the subject of how you insert the sprite.
PUT (x,y),sprite(0,whatever sprite needed), PSET
What puzzles me, is the zero. Will it always be a constant zero whenever I call up a sprite?
·····································LINEAR INC·····································
Ã-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Ã-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance