Generate sprites via code

BlitzMax Forums/BlitzMax Beginners Area/Generate sprites via code

TAS(Posted 2012) [#1]
In Blitzplus I would create most of sprites at startup by use of Createimage(), Imagebuffer(), and then the drawing and text comands. What is the equivalant approach in BlitzMax?


Jesse(Posted 2012) [#2]
create an image of the desired size with CreateImage
draw your stuff to the backbuffer/screen as usual.
grab the backbuffer/screen with GrabImage.

Last edited 2012


TAS(Posted 2012) [#3]
That seems to be the way to go, Thanks.


ImaginaryHuman(Posted 2012) [#4]
Or create a pix map in main memory and write to it with pointers or WritePixel and then turn it into an image.


TAS(Posted 2012) [#5]
Text and draw comands don't work on Pixmap correct? So that's not really option for me.