I've got quite strange problem connected with transparency and hope that someone could help me here ^^. I wrote an map editor, which is used to load certain sprites with transparent background and place them on a stage. Everything's ok as long as I won't move those loaded sprites on the stage. Here's a screenshot showing how it should always look like:
It looks alright only if I place the black background before placing on it those magic balls . Now If I remove the black background and put it once again (so after putting the balls) the result looks like it:
The old balls have some kind of traces of previous white background(the stage's area is cleared on white in the loop) but new balls that I put on the black background behave correctly in the matter of transparency...
Why does this happen? Should I use some sort of function that updates the rendering area or sth? I would be very grateful for help!