Speeding up auto read [Solved]
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.
Speeding up auto read [Solved]
Hi, is there a way to speed up the auto read function? Here is the code I use....
init:
if not persistent.set_afm_time:
$ persistent.set_afm_time = True
$ _preferences.afm_time = 10
trouble with this is, its too slow moving on to the next bit of text (and no, I'm not a fast reader either) I tried changing the afm time to 1 then to 41 and it seems to make no difference what number I put in there. Your thoughts on this please.
init:
if not persistent.set_afm_time:
$ persistent.set_afm_time = True
$ _preferences.afm_time = 10
trouble with this is, its too slow moving on to the next bit of text (and no, I'm not a fast reader either) I tried changing the afm time to 1 then to 41 and it seems to make no difference what number I put in there. Your thoughts on this please.
Last edited by Strum on Sat Oct 03, 2009 10:03 am, edited 1 time in total.
- 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: Speeding up auto read
Note that with this code, it will only set the setting the first time you run (unless you clear persistent).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Speeding up auto read
Hmm, not exactly what I have in mind, I got it to work but can't turn it off until I delete the persistant data. Can anyone tell me how to call up the auto read function so that you can read the visual novel in "hands free mode" until the mouse or keyboard is pressed? The code I posted was the only one I could find on the reference manual that came with ren'py
- JQuartz
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Speeding up auto read
You can also change it in the preference menu under "Auto-Forward Time" option.Strum wrote:I got it to work but can't turn it off until I delete the persistant data.
You can try something like this:Strum wrote:Can anyone tell me how to call up the auto read function so that you can read the visual novel in "hands free mode" until the mouse or keyboard is pressed?
Code: Select all
init python:
def set_atf():
ui.vbox(xalign=1.0)
ui.textbutton("set", ui.callsinnewcontext("set_auto_read"))
ui.textbutton("cancel", ui.callsinnewcontext("cancel_auto_read"))
ui.close()
config.overlay_functions.append(set_atf)
label start:
$ _preferences.text_cps=70
"This is line 2."
"This is line 3"
"This is line 4."
"This is line 5"
jump start
label set_auto_read:
$ ui.vbox(xalign=.5)
$ ui.textbutton("Speedy", ui.returns(3))
$ ui.textbutton("Normal", ui.returns(10))
$ ui.textbutton("Slow", ui.returns(20))
$ ui.close()
$ num=ui.interact()
$ _preferences.afm_time = num
"This is the speed of auto-forward."
"Is this okay?"
$ ui.vbox(xalign=.5)
$ ui.textbutton("Yes", ui.returns(-1))
$ ui.textbutton("No", ui.jumps("set_auto_read"))
$ ui.close()
$ ui.interact()
return
label cancel_auto_read:
$ _preferences.afm_time =0
return
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Re: Speeding up auto read
Thanks for the code, I got the auto read button to work now. However, is there a way to putting the _preferences.text_cps command into an imagemap? I want an imagemap menu to handle the text speed settings using only 3 settings, slow, fast, and instant. Thanks for your help so far.
Edit: Nevermind, it seems I had the correct code all along. Stupid syntax errors....
Edit: Nevermind, it seems I had the correct code all along. Stupid syntax errors....
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]


