05-09-2003, 09:10 AM
Code:
SCREEN 13
CLS
DIM sprite(65, 38)
OPEN "NARUTO2.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
CLOSE #1
Apperantly program breaks when sprite%(byte,0)=tempt% is equal to sprite%(11,0) or it's 9th loop. Which makes very little sense. I looked at it a few more times but I see no real mistake in the code. I checked the logic of how and why things worked and why that should follow those numbers and it makes sense. I don't see a problem.
I have to ask my friend to upload the new .TIL file to the server on his site so i'll get that in later. If you can notice any potential problems from simply looking at the code please tell me.
·····································LINEAR INC·····································
Ã-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Ã-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance