Page 1 of 1
sprite to image?
Posted: Sat Jun 26, 2004 5:30 am
by snap2000
Is it possible to convert a sprite to a 2d image?
Or, perhaps, is it possible, to directly draw a sprite onto another sprite?
Posted: Sat Jun 26, 2004 10:13 am
by fweil
snap2000,
Does not GrabSprite() answer ?
Another way to copy a sprite to an image is to copy the sprite forst to an array and then to copy pixels from the array to an opened image.
Rgrds
Posted: Sat Jun 26, 2004 11:34 am
by BalrogSoft
Hi, to draw a sprite inside another sprite, you must use 'UseBuffer' that redirects the sprite drawing to another sprite instead the screen:
Code: Select all
UseBuffer(1) ; draw sprites on sprite number 1
DisplaySprite(5, 1, 1)
UseBuffer(-1) ; restore the normal sprite output
Posted: Sat Jun 26, 2004 7:53 pm
by snap2000
BalrogSoft wrote:Hi, to draw a sprite inside another sprite, you must use 'UseBuffer' that redirects the sprite drawing to another sprite instead the screen:
Code: Select all
UseBuffer(1) ; draw sprites on sprite number 1
DisplaySprite(5, 1, 1)
UseBuffer(-1) ; restore the normal sprite output
Thank you! Perfect! Awesome!
I was trying
startdrawing(spriteoutput())
until I realized that displaysprite isn't a 2D drawing function.
