Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 9:59 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py specific discussion will be moved to the Ren'Py support forum.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Fri Jul 20, 2012 10:58 am 
Newbie

Joined: Fri Jul 20, 2012 10:52 am
Posts: 5
I want to make a game which looks like movie. So I wanna let it has a "letter box", two black sides on top and bottom of the main screen. And the dialogues put on the letter box, looks like a subtitle. How to do?
THX


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 11:45 am 
Veteran
User avatar

Joined: Thu Jun 14, 2012 2:00 pm
Posts: 381
Location: Germany
Projects: Cards of Destiny
Just make the background and characters with those stripes and make the text box transparent.
Tada, there it is xD

_________________


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 11:50 am 
Newbie

Joined: Fri Jul 20, 2012 10:52 am
Posts: 5
well, but when the character images do some motion, there it isn't.
I think there should be a mask to make that


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 12:26 pm 
Regular
User avatar

Joined: Thu May 03, 2012 3:46 pm
Posts: 103
Location: Milton Keynes, UK
Projects: Past Mistakes
Organization: Freya's Aett
According to Py'Tom in another thread [LINK], Ren'Py does this automatically if the aspect ration of the window doesn't match the aspect ration of the game.

Thus, if the game was made with a 16x9 ratio (such as 800x450) and then the window was resized to a typical 3x4 ratio (like 1024x768) then I think (if I understood correctly) it should add the letterbox automatically to compensate. The only way I can think of to do this is to make it run full-screen because while I can find "config.screen_width" for handling the game's screen-size, I can't find a matching one for setting the window size.

_________________
Recent work - iSchool Dreams: First Semester / iSchool Dreams: My Valentine (iPhone / iPad, dating sims)


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 1:23 pm 
Hentai Poofter
User avatar

Joined: Sat Feb 04, 2006 11:13 pm
Posts: 1709
Location: Philippines
Completed: http://wp.me/PG477-eI See my blog list... quite many
Projects: http://wp.me/PG477-eL See my blog list... quite many
Organization: Studio Mugenjohncel
OK I got this... I now understand what you wanted to achieve...

What you need to do is declare a character like this...

Code:
$ n = Character(None, what_size=28, what_layout="subtitle", what_xalign=0.5, what_text_align=0.5, window_background=None, window_yminimum=0, window_xfill=False, window_xalign=0.5)


This basically tells ren'py to create a character that will say a dialogue without the textbox and centered... basically something that looked like a subtitle...

And then you use it like this...

Code:
n "Has anyone really been far even as decided to use even go want to do look more like?"
n "My guess is that when one really been far even as decided once to use even go want, it is then that he has really been far even as decided to use even go want to do look more like." 


Also, you might want to post this in the ren'py specific section so others looking for ren'py specific thing will see this...

"POOF" (Disappears) :mrgreen:

_________________
800x600 is the Sacred Resolution that guarantees smooth playback on every machine...
Studio Mugenjohncel proudly supports 800x600 game resolution with Burning Passion
[ STUDIO MUGENJOHNCEL ]   [ UNCLE MUGEN'S BACKGROUND TUTORIAL ]
Image
 [ UNCLE MUGEN'S TWITTER ]  [ UNCLE MUGEN'S FREE OELVN BG'S ]


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 2:22 pm 
Newbie

Joined: Fri Jul 20, 2012 10:52 am
Posts: 5
Well……it looks very nearly like what I want. But I also want to use character image, and there is still not a letterbox (I don't want to add black side to the backgrounds). So I use this:

Code:
Character('Allen', what_size=28, what_layout="subtitle", what_text_align=0.5, window_background="Frame.png", window_yminimum=0, window_xfill=True, window_xalign=0,window_yalign=0)


Frame.png is a letterbox mask.

then I found that the texts located at the left top. How to relocated it to the bottom?


Top
 Profile Send private message  
 
PostPosted: Fri Jul 20, 2012 9:27 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Code:
image letterbox = "lettterbox.png"

# The game starts here.
label start:
   
    show letterbox onlayer screen behind say

    e "You've created a new Ren'Py game."

How's this?
or you can define the letterbox screen and show it behind the say screen.

_________________


Top
 Profile Send private message  
 
PostPosted: Sat Jul 21, 2012 12:05 am 
Newbie

Joined: Fri Jul 20, 2012 10:52 am
Posts: 5
nyaatrap wrote:
Code:
image letterbox = "lettterbox.png"

# The game starts here.
label start:
   
    show letterbox onlayer screen behind say

    e "You've created a new Ren'Py game."

How's this?
or you can define the letterbox screen and show it behind the say screen.


While running game code:
File "game/script.rpy", line 21, in script
Exception: Trying to add something to non-existent layer 'screen'.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 21, 2012 1:37 am 
Veteran
User avatar

Joined: Thu May 31, 2012 11:17 pm
Posts: 309
Completed: a2
Projects: AXIOM.01, The Pirate Mermaid
Organization: Variable X
I think "onlayer screen" needs to be "onlayer screens." :)

_________________
AXIOM.01 (girl detective game) - WIP thread/site
The Pirate Mermaid (twisted fairytale otome) - WIP thread/demo
a2 ~a due~ (music, language, love ~ early NaNoRenO project) - game complete!


Image


Top
 Profile Send private message  
 
PostPosted: Sat Jul 21, 2012 1:56 am 
Newbie

Joined: Fri Jul 20, 2012 10:52 am
Posts: 5
Arowana wrote:
I think "onlayer screen" needs to be "onlayer screens." :)

THX. That's OK.

mugenjohncel wrote:
OK I got this... I now understand what you wanted to achieve...

What you need to do is declare a character like this...

Code:
$ n = Character(None, what_size=28, what_layout="subtitle", what_xalign=0.5, what_text_align=0.5, window_background=None, window_yminimum=0, window_xfill=False, window_xalign=0.5)


This basically tells ren'py to create a character that will say a dialogue without the textbox and centered... basically something that looked like a subtitle...

And then you use it like this...

Code:
n "Has anyone really been far even as decided to use even go want to do look more like?"
n "My guess is that when one really been far even as decided once to use even go want, it is then that he has really been far even as decided to use even go want to do look more like."


Also, you might want to post this in the ren'py specific section so others looking for ren'py specific thing will see this...

"POOF" (Disappears) :mrgreen:


And How to change the style of all say box? I don't want to write so many codes when I declare any new character.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group