Replacing the 'transparent squares' root image
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- DesertFox
- Regular
- Posts: 196
- Joined: Sun Jul 28, 2013 1:29 pm
- Completed: Over The Hills And Far Away
- Projects: My Little Dictator
- Organization: WarGirl Games
- Contact:
Replacing the 'transparent squares' root image
Is it possible to replace the transparent grey squares root image (the standard indicator for transparency, as used in Photoshop and elsewhere) with something else?
For instance, with a color like black?
It would be useful to replace since it would make hpunch/vpunch transitions look a bit better (since you can often see the light grey squares around the edges when the screen shakes). It would also be good to replace in general.
For instance, with a color like black?
It would be useful to replace since it would make hpunch/vpunch transitions look a bit better (since you can often see the light grey squares around the edges when the screen shakes). It would also be good to replace in general.
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Replacing the 'transparent squares' root image
Just remember to makewhen building your game and the squares will be gone. They only exist in developer mode.
Code: Select all
config.developer = FalseNo, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- DesertFox
- Regular
- Posts: 196
- Joined: Sun Jul 28, 2013 1:29 pm
- Completed: Over The Hills And Far Away
- Projects: My Little Dictator
- Organization: WarGirl Games
- Contact:
Re: Replacing the 'transparent squares' root image
What are they replaced by?Donmai wrote:Just remember to makewhen building your game and the squares will be gone. They only exist in developer mode.Code: Select all
config.developer = False
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Replacing the 'transparent squares' root image
Black, as you wanted. Do a simple test now: change config.developer to False and run your game.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Replacing the 'transparent squares' root image
They're not replaced by black, they're replaced by "undefined", which may vary from backend to backend. If you want the squares to go away, use scene to put something in front of them.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- kisa
- Veteran
- Posts: 383
- Joined: Sat Aug 27, 2011 7:08 pm
- Completed: Brother Rose, Dogs Alone
- Projects: So many projects, I can't name them.
- Deviantart: tsubasafan135
- Skype: Discord: Kisaofbishies#6680
- itch: kisa
- Contact:
Re: Replacing the 'transparent squares' root image
You could also just edit the actual transparent squares image in the common folder...
But, I'm just answering the question without considering any other issues that might arise...
But, I'm just answering the question without considering any other issues that might arise...
I'm offering commissions!
viewtopic.php?f=62&t=41656
viewtopic.php?f=62&t=41656
- DesertFox
- Regular
- Posts: 196
- Joined: Sun Jul 28, 2013 1:29 pm
- Completed: Over The Hills And Far Away
- Projects: My Little Dictator
- Organization: WarGirl Games
- Contact:
Re: Replacing the 'transparent squares' root image
Is there no way to define that 'undefined' that appears? For instance, in a CG Gallery when showing a transparent sprite. In developer mode it appears against a transparent grey squares background but may appear black on non-developer mode. I can't use scene in this instance so how would I go about defining that background?
- PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Replacing the 'transparent squares' root image
You would use add to add a background image to your screen.
Code: Select all
screen gallery:
add "gallery_bg.png"
...
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Google [Bot]

