How can I change the way the text appears on the screen?

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
GrisGrisGriotGirl
Newbie
Posts: 6
Joined: Fri Mar 07, 2014 9:56 pm
Contact:

How can I change the way the text appears on the screen?

#1 Post by GrisGrisGriotGirl »

https://www.youtube.com/watch?v=zArP9fK ... 497C85855F

The text in this visual novel (Higuruashi) appears to "fade in" on the screen, rather than appear bluntly. Is there anyway to code the text to appear in a similar manner in Ren'py?

User avatar
rakada
Regular
Posts: 71
Joined: Tue Jan 07, 2014 11:00 pm
Contact:

Re: How can I change the way the text appears on the screen?

#2 Post by rakada »

## The default text speed in characters per second. 0 is infinite.

config.default_text_cps = 1

you can use this to change how fast or slow it shows the text 0 is that it all instant appear on the screen at once

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: How can I change the way the text appears on the screen?

#3 Post by Asceai »

I think OP meant that the characters alpha fade in, rather than appearing instantly. I don't know how to make ren'py do this without a heap of custom coding.

GrisGrisGriotGirl
Newbie
Posts: 6
Joined: Fri Mar 07, 2014 9:56 pm
Contact:

Re: How can I change the way the text appears on the screen?

#4 Post by GrisGrisGriotGirl »

Is the alpha fade exceptionally hard work?

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: How can I change the way the text appears on the screen?

#5 Post by Asceai »

It's not so much hard work as something Ren'Py simply doesn't do. It would be easy to make, for example, all the text fade in at once (just use ATL on the text in the 'say' screen) but making it appear character by character would be more difficult.

Maybe using an ImageDissolve transition as a displayable with a control image like this:
Image
shaped around your textbox (assuming a 4 line textbox) is a possible hack to enable this, but it's not quite the same.

GrisGrisGriotGirl
Newbie
Posts: 6
Joined: Fri Mar 07, 2014 9:56 pm
Contact:

Re: How can I change the way the text appears on the screen?

#6 Post by GrisGrisGriotGirl »

"It's not so much hard work as something Ren'Py simply doesn't do. It would be easy to make, for example, all the text fade in at once (just use ATL on the text in the 'say' screen) but making it appear character by character would be more difficult."

OK. Then how could I make all the text fade in, if you don't mind explaining?

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: How can I change the way the text appears on the screen?

#7 Post by Asceai »

GrisGrisGriotGirl wrote:"It's not so much hard work as something Ren'Py simply doesn't do. It would be easy to make, for example, all the text fade in at once (just use ATL on the text in the 'say' screen) but making it appear character by character would be more difficult."

OK. Then how could I make all the text fade in, if you don't mind explaining?
Edit screens.rpy and find the first 'text what' line. Add 'at text_transform' to the end of it.
Somewhere else, add this:

Code: Select all

transform text_transform:
  alpha 0.0
  linear 1.0 alpha 1.0
Fiddle with the first 1.0 on the last line to control how long the fade takes.

GrisGrisGriotGirl
Newbie
Posts: 6
Joined: Fri Mar 07, 2014 9:56 pm
Contact:

Re: How can I change the way the text appears on the screen?

#8 Post by GrisGrisGriotGirl »

Thank you so much. sir! ^_^

Post Reply

Who is online

Users browsing this forum: No registered users