Is it possible to copy a sprite to the background?

BlitzMax Forums/BlitzMax Programming/Is it possible to copy a sprite to the background?

VomitOnLino(Posted 2006) [#1]
Hi,

I've just been thinking of a way to grab a (several) sprite(s) and put them on the (scrolling) background layer - is this possible ? Like shells ejected from an smg, skidmarks or dead bodies...
For All I know using grabimage would be way too slow to do this in real time.

Has anyone given this any toughts ? Code snippets ?


ImaginaryHuman(Posted 2006) [#2]
Just add them to the list of sprites to draw and draw them each frame. Gfx cards are ideally suited to drawing lots of pixels so you might as well make use of it.


Russell(Posted 2006) [#3]
And 'where' it is drawn, depth-wise, depends on 'when' it is drawn in the main drawing loop of your program (The earlier it is drawn, the deeper it will be, and visa-versa).

Russell