This site requires JavaScript, please enable it in your browser!
Greenfoot back
Roshan123
Roshan123 wrote ...

2020/8/11

Hello help karlo

Roshan123 Roshan123

2020/8/11

#
I used background transperency in myWorld and it works on greenfoot engine but its not working in the greenfoot website At the end of the scenario the world get little bit transparent but its not showing in website https://www.greenfoot.org/scenarios/26377
Kostya20052011 Kostya20052011

2020/8/11

#
And you have a white background, how exactly do you want it to be transparent?
Roshan123 Roshan123

2020/8/11

#
When i used (transparency) i image was behaving like a fx video I wrote it something around setTransperency(50)
Kostya20052011 Kostya20052011

2020/8/11

#
I understand, but how do you want it to be displayed, transparency makes it possible to see objects behind this image, but there is nothing behind the background, how do you want transparency to be displayed?
Roshan123 Roshan123

2020/8/11

#
Like a ghost i.e. half transparent and half visible It can oly be seen in greenfoot engine but i am not able to see it on website
Kostya20052011 Kostya20052011

2020/8/11

#
Sometimes such problems occur, probably you can't do this effect on JS. You can make the image transparent and the effect will be displayed, I checked)
danpost danpost

2020/8/11

#
Your background image should be entirely opaque (with no transparency). You can create a separate image with transparency and either give it to an actor in the world or use drawImage to draw it onto the background image.
Kostya20052011 Kostya20052011

2020/8/11

#
Yes, that's what I wanted to say)
You need to login to post a reply.