Great example! It really got me going =)
I figured that you don't really need both tg_pixmap and tg1_pixmap, I used tg_pixmap at both places and it worked fine or am I missing something?
And I have a question, why do you release the pixmap each frame?
My tanks is now running around in different colors =) So it works fine, I used grabimage to get it all together into one image.
It seems like BlitzMax new way to handle images require pixmaps in this way. Still feels a bit strange you can't change the maskcolor after you loaded the image. Anyway if this is the case then I think it should be added to the documentation.
I figured that you don't really need both tg_pixmap and tg1_pixmap, I used tg_pixmap at both places and it worked fine or am I missing something?
And I have a question, why do you release the pixmap each frame?
My tanks is now running around in different colors =) So it works fine, I used grabimage to get it all together into one image.
It seems like BlitzMax new way to handle images require pixmaps in this way. Still feels a bit strange you can't change the maskcolor after you loaded the image. Anyway if this is the case then I think it should be added to the documentation.