Replacing the 'transparent squares' root image

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
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

#1 Post by DesertFox » Thu Apr 16, 2015 1:37 pm

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.

User avatar
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

#2 Post by Donmai » Thu Apr 16, 2015 2:01 pm

Just remember to make

Code: Select all

    config.developer = False
when building your game and the squares will be gone. They only exist in developer mode.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
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

#3 Post by DesertFox » Thu Apr 16, 2015 5:13 pm

Donmai wrote:Just remember to make

Code: Select all

    config.developer = False
when building your game and the squares will be gone. They only exist in developer mode.
What are they replaced by?

User avatar
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

#4 Post by Donmai » Thu Apr 16, 2015 6:14 pm

Black, as you wanted. Do a simple test now: change config.developer to False and run your game.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
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

#5 Post by PyTom » Fri Apr 17, 2015 7:28 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
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

#6 Post by kisa » Fri Apr 17, 2015 8:44 pm

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...
I'm offering commissions!
viewtopic.php?f=62&t=41656

User avatar
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

#7 Post by DesertFox » Wed Apr 22, 2015 4:05 pm

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?

User avatar
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

#8 Post by PyTom » Wed Apr 22, 2015 6:29 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]