Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
*grrrowl* :)
#11
"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.
Reply
#12
<----- Dumbass.

i meant to say 'image' but thats an array, anyways Tongue

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
Reply
#13
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..
Reply
#14
Shouldn't you add a '-1' after the FOR A = 0 TO .... line? Wink Just saying...

Like this:
Code:
FOR A = 0 TO Image(1, Index) - 1 'ERROR OCCURS HERE

Big Grin

Also, if you like info about the GET/PUT format, look here:
Code:
GET PUT Format
Offset  Type     Description
  0      Int      Width of the sprite * 8 (= x)
  2      Int      Height of the sprite (= y)
  ?      Byte     Pixel data, starts with upperleft corner, advancing right.

EDIT: wt is GetPixelImage ??? Btw, to make your code slightly faster, store the result of this function in a variable.
Reply
#15
Quote:Shouldn't you add a '-1' after the FOR A = 0 TO .... line? Wink Just saying...

Like this:
Code:
FOR A = 0 TO Image(1, Index) - 1 'ERROR OCCURS HERE

Big Grin
Didn't work...

Quote:Also, if you like info about the GET/PUT format, look here:
Code:
GET PUT Format
Offset  Type     Description
  0      Int      Width of the sprite * 8 (= x)
  2      Int      Height of the sprite (= y)
  ?      Byte     Pixel data, starts with upperleft corner, advancing right.

EDIT: wt is GetPixelImage ??? Btw, to make your code slightly faster, store the result of this function in a variable.
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.
Reply
#16
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 Smile

BTW: Please choose an other topic-title next time Wink
Reply
#17
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
Reply
#18
Who to the wha' to the how?

Ok, let's see if my inferior brain can comprehend that. Smile

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. Smile
Reply
#19
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
Reply
#20
Nooooooooooooooooooo... Smile

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...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)