Page 1 of 1

8-Bit Sprites

Posted: Fri May 30, 2003 3:21 pm
by Tomy
Hello,

why i can't display 8-Bit-Sprites on a 16- or 32-Bit Screen?

The Error code is:
#Sprite Object not initialized

Thanks!

Posted: Fri May 30, 2003 4:53 pm
by Fred
Because it's currently not supported. I could add this in a near future.

Posted: Fri May 30, 2003 5:38 pm
by Tomy
Thanks!!! :D

Posted: Fri May 30, 2003 9:18 pm
by GPI
Tomy wrote:Thanks!!! :D
try something like this (untested, but the way should be clear!)

Code: Select all

loadimage (#img,"8bit.bmp")
createsprite(#sp,imagewidth(#nr),imageheight(#nr))
startdrawing(imageoutput())
  drawimage(imageid(),0,0)
stopdrawing()
freeimage(#img)

Posted: Fri May 30, 2003 9:52 pm
by Thorsten
Hi GPI :)

I think you have a error in your Code. You don't wan't this, or:
startdrawing(imageoutput())

Why imageoutput()? You meant SpriteOutput(#sp), or? :wink:

So:

Code: Select all

loadimage (#img,"8bit.bmp") 
createsprite(#sp,imagewidth(#nr),imageheight(#nr)) 
startdrawing(SpriteOutput(#sp)) 
  drawimage(imageid(),0,0) 
stopdrawing() 
freeimage(#img)