Thanks Dale!! Been wanting to do a tutorial on this for a while but didn’t want it to get too long! I wasn’t sure if setting up a brand new PyGame project needed to be a part of this but the total video stayed under 15 minutes so I left it in! Hopefully not too long :)
So if you're drawing a shape in pygame you gotta add it to a surface that has a transparency attribute(if you want transparency), but loaded images get a transparency automatically. Makes sense😎
Yo uso varios tamaños de pantallas pero al cambiarla la transparencia se duplica de formas raras.. me podes ayudar con una class que solucione ese problema.. gracias 😊
Yo, is there a way to change the transparency of the window itself, while leaving the objects I draw onto it opaque? I've looked at pygame docs and there is a way to set alpha values for colours, but if I try to use the colour as the fill colour for my background, it remains black, when I want to be able to see other windows under it.
Hi - so the pygame window will always have a base layer of 100% solid opaque where you won't be able to like see your desktop behind it - but you can fill the screen with a surface or an image that has a semi-transparent color with an alpha setting, so you can achieve pretty much any color you want, but the window itself can't really do semi-transparent! Hope this helps!
@@user-oi9gi7kl2p I am on windows 10, and no, it does not have to be done with pygame, I am only using pygame because I am only familiar with python. I can use other languages, it will just be harder as I do not know how to code on them
@@lemastertech excuse me for my rage, I was trying to code in python for the first time and fill the screen with a 1% opacity rectangle so my moving rectangle would have a trail. I have stopped coding in python :^)
Nice explanation dude!
Thanks Dale!! Been wanting to do a tutorial on this for a while but didn’t want it to get too long! I wasn’t sure if setting up a brand new PyGame project needed to be a part of this but the total video stayed under 15 minutes so I left it in! Hopefully not too long :)
This is an interesting je for sure. It’s one thing with shapes but with images. This is really cool.😀
Thanks Will! It’s super useful for making animated scenes where things may want to fade in or fade out too!
thanks man, appreciate that
Thank you for watching!
thanks for the video!
You’re very welcome thanks for watching!!
So if you're drawing a shape in pygame
you gotta add it to a surface that has a transparency attribute(if you want transparency),
but loaded images get a transparency automatically.
Makes sense😎
yes sir! I think there's also a way to 'convert' a shape to a surface so it can set transparency but in my mind that's more tedious than this method!
Yo uso varios tamaños de pantallas pero al cambiarla la transparencia se duplica de formas raras.. me podes ayudar con una class que solucione ese problema.. gracias 😊
Lo siento mi español es horrible pero si puedo ayudarte que chevere!
Yo, is there a way to change the transparency of the window itself, while leaving the objects I draw onto it opaque? I've looked at pygame docs and there is a way to set alpha values for colours, but if I try to use the colour as the fill colour for my background, it remains black, when I want to be able to see other windows under it.
Hi - so the pygame window will always have a base layer of 100% solid opaque where you won't be able to like see your desktop behind it - but you can fill the screen with a surface or an image that has a semi-transparent color with an alpha setting, so you can achieve pretty much any color you want, but the window itself can't really do semi-transparent! Hope this helps!
@@user-oi9gi7kl2p I am on windows 10, and no, it does not have to be done with pygame, I am only using pygame because I am only familiar with python. I can use other languages, it will just be harder as I do not know how to code on them
@@user-oi9gi7kl2p What is it?
👍🏻
Thanks for watching!
can you just make a 1 minute video showing me what I want to see Im too dumb to understand anything else
>:V
Haha I could I suppose - what specifically did you want to see??
@@lemastertech excuse me for my rage, I was trying to code in python for the first time and fill the screen with a 1% opacity rectangle so my moving rectangle would have a trail.
I have stopped coding in python :^)