Is there anyway to clear a screen (made with CREATESCREEN) to fully transparent?
I am using POLYVECTOR for drawing all my sprites from one large sprite sheet. So for collision detection, I am using 2 small screens (32x32) that I draw my player sprite into and the other I draw the enemy sprites. This way I can use SPRITECOL for pixel perfect collision detection.
The problem I am having is that the last image drawn into these screens is always left there, so after a while the screens fill up with garbage and becomes no use for collision detection.
The only way I have managed to get over this problem is to create the screens each game loop but as you can imagine, the game grinds to a halt and probably fragments memory very badly.
Is there an ALPHAMODE I am missing that will allow me to draw my sprites and clear the alpha as well?
Has anyone got any ideas for how I can over come this?
Cheers,
Andy
drawrect with the coulour you put to SETTRANSPARENCY
Awesome! Worked a treat and thanks for a VERY fast reply :)