Chaser
Member
I'm creating a sprite from a surface, well, more than one actually and everything seems to be OK, all but one sprite(so far).
in the syntax there is 'removeback' argument. which i understand how it works, or at least i thought i did so i think someone may have to explain to me if they can what is happening.
i don't want the sprite being created to have a background colour, so i set it to true. pretty easy to understand i think.
But for one sprite it is constantly giving it a 'White' background. have no idea why, as the code is no different to any of the others, only difference is the x and y co-ordinates from where the sprite is being created. So i tested the 'removeback' argument on this particular sprite and set it to false and it did remove the background White colour. This seems to be operating backwards? especially from the rest. However it didn't just remove the White background colour, it actually removed all the White from the sprite, which is something i didn't want to happen. After reading the manual a there was a sentence that i found interesting.
"Removeback - Indicates whether to make all pixels with the background colour (left-bottom pixel) transparent."
i think this could be the answer to my troubles. "Left - bottom pixel". Left bottom pixel from where? the sprite that is being drawn to the surface before creating a sprite from it?, or the sprite being created from the surface? there is no colours on the bottom left pixel, it is 'transparent'. I'm a bit confused about this. I don't know why it just wont work like the rest, it's baffling.
any ideas of what could be causing this 'weird' behaviour? i would be very grateful.
in the syntax there is 'removeback' argument. which i understand how it works, or at least i thought i did so i think someone may have to explain to me if they can what is happening.
i don't want the sprite being created to have a background colour, so i set it to true. pretty easy to understand i think.
But for one sprite it is constantly giving it a 'White' background. have no idea why, as the code is no different to any of the others, only difference is the x and y co-ordinates from where the sprite is being created. So i tested the 'removeback' argument on this particular sprite and set it to false and it did remove the background White colour. This seems to be operating backwards? especially from the rest. However it didn't just remove the White background colour, it actually removed all the White from the sprite, which is something i didn't want to happen. After reading the manual a there was a sentence that i found interesting.
"Removeback - Indicates whether to make all pixels with the background colour (left-bottom pixel) transparent."
i think this could be the answer to my troubles. "Left - bottom pixel". Left bottom pixel from where? the sprite that is being drawn to the surface before creating a sprite from it?, or the sprite being created from the surface? there is no colours on the bottom left pixel, it is 'transparent'. I'm a bit confused about this. I don't know why it just wont work like the rest, it's baffling.
any ideas of what could be causing this 'weird' behaviour? i would be very grateful.