How to make timed text?
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.
- AHAKuo
- Regular
- Posts: 41
- Joined: Tue Feb 06, 2018 11:10 am
- Projects: SoUnd Is ToxIc
- Organization: AHAKuo
- Tumblr: ahakuo
- Deviantart: ahakuo
- Contact:
How to make timed text?
How can I make the "show text" command show the text and hide it after a certain amount of time?
Working on:
Re: How to make timed text?
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to make timed text?
That is a screen action, not what the OP is after.
Perhaps the Paragraph pause function has what you want?
https://www.renpy.org/doc/html/text.html?#text-tag-p
The paragraph pause tag is a self-closing tag that terminates the current paragraph, and waits for the user to click to continue. If it is given an argument, the argument is interpreted as a number, and the wait automatically ends after that many seconds have passed.
Code: Select all
"Line 1{p}Line 2{p=1.0}Line 3"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: How to make timed text?
You could just use renpy.notify
https://www.renpy.org/doc/html/other.ht ... npy.notify
Or look at the Notify Screen and make your own version of it called something else
https://www.renpy.org/doc/html/screen_s ... ify#notify
https://www.renpy.org/doc/html/other.ht ... npy.notify
Or look at the Notify Screen and make your own version of it called something else
https://www.renpy.org/doc/html/screen_s ... ify#notify
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
Re: How to make timed text?
Or you could use ATL:
Code: Select all
transform timed_hide(t):
time t
linear .5 alpha 0
label start:
show text "Hello World" at timed_hide(1)
""
return
- AHAKuo
- Regular
- Posts: 41
- Joined: Tue Feb 06, 2018 11:10 am
- Projects: SoUnd Is ToxIc
- Organization: AHAKuo
- Tumblr: ahakuo
- Deviantart: ahakuo
- Contact:
Re: How to make timed text?
This doesn't seem to work. I think this code only works for displayables not text.DannX wrote: ↑Wed Mar 14, 2018 3:32 pm Or you could use ATL:
Code: Select all
transform timed_hide(t): time t linear .5 alpha 0 label start: show text "Hello World" at timed_hide(1) "" return
###EDIT####
Oops I'm sorry. I've mistakenly forgot to put "show text" how stupid of me. It works now! Thank you so much! You're a lifesaver seriously <3
Last edited by AHAKuo on Fri Mar 16, 2018 10:23 am, edited 2 times in total.
Working on:
- AHAKuo
- Regular
- Posts: 41
- Joined: Tue Feb 06, 2018 11:10 am
- Projects: SoUnd Is ToxIc
- Organization: AHAKuo
- Tumblr: ahakuo
- Deviantart: ahakuo
- Contact:
Re: How to make timed text?
Not really what I'm going for but I'll give it a look. Thank you :3trooper6 wrote: ↑Wed Mar 14, 2018 3:23 pm You could just use renpy.notify
https://www.renpy.org/doc/html/other.ht ... npy.notify
Or look at the Notify Screen and make your own version of it called something else
https://www.renpy.org/doc/html/screen_s ... ify#notify
Working on:
- AHAKuo
- Regular
- Posts: 41
- Joined: Tue Feb 06, 2018 11:10 am
- Projects: SoUnd Is ToxIc
- Organization: AHAKuo
- Tumblr: ahakuo
- Deviantart: ahakuo
- Contact:
Re: How to make timed text?
No this isn't it. I've tried.Imperf3kt wrote: ↑Wed Mar 14, 2018 2:59 pmThat is a screen action, not what the OP is after.
Perhaps the Paragraph pause function has what you want?
https://www.renpy.org/doc/html/text.html?#text-tag-pThe paragraph pause tag is a self-closing tag that terminates the current paragraph, and waits for the user to click to continue. If it is given an argument, the argument is interpreted as a number, and the wait automatically ends after that many seconds have passed.
Code: Select all
"Line 1{p}Line 2{p=1.0}Line 3"
Working on:
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Majestic-12 [Bot]