Nvl mode background problem. [SOLVED]

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.
Message
Author
AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Nvl mode background problem. [SOLVED]

#1 Post by AlexCLD »

Hi everybody! I am trying to use de nvl mode on my game, but I have an annoying problem:

Image

"b" image is white, but when I start the game this is what's happen:

Image

The background is gray and the image that I put is white.

Please! Help!
Last edited by AlexCLD on Wed Apr 15, 2015 5:11 pm, edited 1 time in total.

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#2 Post by kisa »

That would be because the background to the textbox is transparent black.
you could try typing the text as "centered"?
I'm offering commissions!
viewtopic.php?f=62&t=41656

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#3 Post by AlexCLD »

kisa wrote:That would be because the background to the textbox is transparent black.
you could try typing the text as "centered"?
You're right, when I center the text, the gray background disappeared, but I want to put the text on the top left of the screen. How can I solve this problem?

Thanks in advance :)

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#4 Post by kisa »

To do that, you could change the background of the textbox to a transparent image.
There's a tutorial on that somewhere around here. Would you like a link?

Edit:

http://lemmasoft.renai.us/forums/viewto ... he+textbox
Just use a transparent png for the image and you should be good.

Warning: Depending on your computer, the file itself (in the game folder) may appear as a white box. But, it should be transparent.
I'm offering commissions!
viewtopic.php?f=62&t=41656

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#5 Post by AlexCLD »

kisa wrote:To do that, you could change the background of the textbox to a transparent image.
There's a tutorial on that somewhere around here. Would you like a link?

Edit:

http://lemmasoft.renai.us/forums/viewto ... he+textbox
Just use a transparent png for the image and you should be good.

Warning: Depending on your computer, the file itself (in the game folder) may appear as a white box. But, it should be transparent.
You say that I must do something like this?

Image

Because the gray colour of the background remains in the same place. Sorry if I am doing something wrong, I have much to learn.


Edit: "frame.png" is a transparent image.

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#6 Post by kisa »

Perhaps you need to add a border?
If that doesn't work... either it's calling a different background for novel mode or I'm just an idiot. :|
I'm offering commissions!
viewtopic.php?f=62&t=41656

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#7 Post by AlexCLD »

kisa wrote:Perhaps you need to add a border?
If that doesn't work... either it's calling a different background for novel mode or I'm just an idiot. :|
Image

You say something like this?

I'm the real idiot :lol:

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#8 Post by kisa »

I actually meant a mostly transparent single pixel border around the image... But, if that works, do it.
I'm offering commissions!
viewtopic.php?f=62&t=41656

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#9 Post by AlexCLD »

kisa wrote:I actually meant a mostly transparent single pixel border around the image... But, if that works, do it.
Doesn't works, but I changed the "frame" image and the resolution and this is what I see:

Image

Interesting, but really annoying problem :?

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#10 Post by kisa »

Include/change the margins(?) and the background should match up better with the textbox.
Aside from that... If you want to keep the white background throughout... Perhaps change the frame to a white image?
I'm offering commissions!
viewtopic.php?f=62&t=41656

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#11 Post by AlexCLD »

kisa wrote:Include/change the margins(?) and the background should match up better with the textbox.
Aside from that... If you want to keep the white background throughout... Perhaps change the frame to a white image?
Image

:|

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#12 Post by kisa »

Make the textbox fill the whole screen via adjusting the margins. It will make the textbox become the white background you so desire.
I'm offering commissions!
viewtopic.php?f=62&t=41656

philat
Eileen-Class Veteran
Posts: 1910
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Nvl mode background problem.

#13 Post by philat »

Guys, this should not be this painful. Use nvl_window instead of window, and a background of None will register as transparent. You can use the style inspector (shift+I) to see what style a displayable is using.

Code: Select all

init:
    style nvl_window:
        background None

label start:
    scene b
    "nvl text as usual"
Last edited by philat on Wed Apr 15, 2015 4:10 pm, edited 1 time in total.

AlexCLD
Newbie
Posts: 24
Joined: Sun Mar 22, 2015 6:44 pm
Projects: Just a Number
Contact:

Re: Nvl mode background problem.

#14 Post by AlexCLD »

kisa wrote:Make the textbox fill the whole screen via adjusting the margins. It will make the textbox become the white background you so desire.
I just can't do it... :cry:

User avatar
kisa
Veteran
Posts: 384
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: Nvl mode background problem.

#15 Post by kisa »

Listen to philat? 8u8

I'm sorry that it's painful...
I'm offering commissions!
viewtopic.php?f=62&t=41656

Post Reply

Who is online

Users browsing this forum: Nozori_Games, Semrush [Bot]