12-15-2003, 05:40 AM
"index" isn't a sub. It's a variable that determines which image to display from the array. And it's not going that high. As I said, it works perfectly in the IDE, but faggs up in the compilation.
*grrrowl* :)
|
12-15-2003, 05:40 AM
"index" isn't a sub. It's a variable that determines which image to display from the array. And it's not going that high. As I said, it works perfectly in the IDE, but faggs up in the compilation.
12-15-2003, 05:48 AM
<----- Dumbass.
i meant to say 'image' but thats an array, anyways maybe are your sprites not saved -AS INTEGER- ? thats one of the only things i could think of. and... your sprites arent get, put compatible, are they? cause i thought they could only have one dimension
12-15-2003, 07:28 AM
Nope, not GET and PUT compatible. And I tried putting DEFINT A-Z at the top, but I kept getting retarded "paremeter" errors.
Please help me someone. I've come too far in this program..
12-15-2003, 02:15 PM
Shouldn't you add a '-1' after the FOR A = 0 TO .... line? Just saying...
Like this: Code: FOR A = 0 TO Image(1, Index) - 1 'ERROR OCCURS HERE Also, if you like info about the GET/PUT format, look here: Code: GET PUT Format EDIT: wt is GetPixelImage ??? Btw, to make your code slightly faster, store the result of this function in a variable.
12-15-2003, 04:24 PM
Quote:Shouldn't you add a '-1' after the FOR A = 0 TO .... line? Just saying...Didn't work... Quote:Also, if you like info about the GET/PUT format, look here:Get pixel image is what gets the color of the pixel. The problem is that it is giving me subscript out of range, ONLY when I add '$DYNAMIC.
12-15-2003, 05:23 PM
Hrmm. Ok.
Please post what the Image() array actually is and what it contains. Furthermore, please post the full code of the GetPixelImage and PutPixel routine. This way, we might be able to find you a solution BTW: Please choose an other topic-title next time
12-15-2003, 07:52 PM
The error comes in array Image, which is received as a parameter inside the SUB. Now you show me two SHARED arrays, so I understand that you are calling that sub passing one of those two SHARED arrays as a parameter...
Then, why are those variables SHARED, if you are passing them as parameters? This can be the error.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
12-15-2003, 08:07 PM
Who to the wha' to the how?
Ok, let's see if my inferior brain can comprehend that. The reason that it's SHARED is because whenever I don't share it, the variable isn't received in the subs. I hope that helped. Neo: I'll get that code once I get back home. And sure, I'll change the title.
12-15-2003, 08:26 PM
If it is shared, you don't need to pass it as a parameter.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
12-16-2003, 12:26 AM
Nooooooooooooooooooo...
Ok, "Sprite" and "EditSprite" are dimmed as arrays In the sub, that perimeter is used to input WHICH array you're using. In this program, Sprite and EditSprite are being used. But the thing is, I'm tried DIMMING both sprites at unrealistic amounts, and it still keeps pimping on me... |
« Next Oldest | Next Newest »
|