Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualsavail

Posted 16 May 2013 - 07:54 AM

Hey,

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:

good.jpg

It looks alright only if I place the black background before placing on it those magic balls tongue.png. Now If I remove the black background and put it once again (so after putting the balls) the result looks like it:

bad.jpg

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!


#2savail

Posted 16 May 2013 - 07:49 AM

Hey,

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:

good.jpg

It looks alright only if I place the black background before placing on it those magic balls tongue.png. Now If I remove the black background and put it once again (so after putting the balls) the result looks like it:

bad.jpg

The old balls have some kind of traces of earlier 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!

 

 


#1savail

Posted 16 May 2013 - 06:27 AM

Hey,

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:

good.jpg

It looks alright only if I place the black background before placing on it those magic balls :P. Now If I remove the black background and put it once again (so after putting the balls) the result looks like it:

bad.jpg

The old balls have some kind of traces of earlier white background 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!

 

 


PARTNERS