Renpy's driving me crazy so far lol the documentation doesn't help... Or i'm too much of a noob to find anything in it ?
So actually i'm trying to do 2 things :
1 : i want to use the value of the text speed (and other sliders as well) to create a fake "animated" effect... This is pretty easy to do in C language, just print one picture when the values are odds, and another when they're even, so when we move the bar, the 2 animations succeed to each other creating a kind of movement.
I want to do that here... However i'm not even able to find how to GET the value of the text speed...
If i try to do it next to the bar... it doesn't work, and i'm not able to get the preferences.text_cps value neither the preference("text speed") value...
So i create that : (hoping to use one after another on a IF condition depending on value returned by the bar/slider)
Code: Select all
style pref_bar:
left_gutter 3
right_gutter 3
yalign 0.5
xysize (550, 40)
left_bar Frame("gui/slider/horizontal_hover_bar.png", 4, 0)
right_bar Frame("gui/slider/horizontal_idle_bar.png", 4, 0)
thumb "gui/slider/horizontal_[prefix_]thumb.png"
style pref_bar1:
left_gutter 3
right_gutter 3
yalign 0.5
xysize (550, 40)
left_bar Frame("gui/slider/horizontal_hover_bar.png", 4, 0)
right_bar Frame("gui/slider/horizontal_idle_bar.png", 4, 0)
thumb "gui/slider/horizontal_[prefix_]thumb1.png"Code: Select all
vbox:
spacing 35
hbox:
spacing 10
bar:
style "pref_bar"
value Preference("text speed")I can't either get the Preference("text speed") value, neither the Preferences.text_cps value, even indirectly... How do we get those values ? what am i doing wrong ?
2 : Is there a way to define a different text speed for each character (simulating characters that speak slowly or fastly), and use the global preference text speed as a multiplier for these relative character text speed ? i find nothing about this...
Thanks to anyone that could help !
Edit, so far i tried to print, in the text, as a variable :
Code: Select all
"Text Speed [gui.preference("text_cps")]"
"Text Speed [gui.preference("text_speed")]"
"Text Speed [gui.preference("text.cps")]"
"Text Speed [gui.preference("text.speed")]"
"Text Speed [gui.preference(text_cps)]"
"Text Speed [gui.preference(text_speed)]"
"Text Speed [gui.preference(text.cps)]"
"Text Speed [gui.preference(text.speed)]"
"Text Speed [gui.preferences("text_cps")]"
"Text Speed [gui.preferences("text_speed")]"
"Text Speed [gui.preferences("text.cps")]"
"Text Speed [gui.preferences("text.speed")]"
"Text Speed [gui.preferences(text_cps)]"
"Text Speed [gui.preferences(text_speed)]"
"Text Speed [gui.preferences(text.cps)]"
"Text Speed [preferences(text.speed)]"
"Text Speed [preference("text_cps")]"
"Text Speed [preference("text_speed")]"
"Text Speed [preference("text.cps")]"
"Text Speed [preference("text.speed")]"
"Text Speed [preference(text_cps)]"
"Text Speed [preference(text_speed)]"
"Text Speed [preference(text.cps)]"
"Text Speed [preference(text.speed)]"
"Text Speed [preferences("text_cps")]"
"Text Speed [preferences("text_speed")]"
"Text Speed [preferences("text.cps")]"
"Text Speed [preferences("text.speed")]"
"Text Speed [preferences(text_cps)]"
"Text Speed [preferences(text_speed)]"
"Text Speed [preferences(text.cps)]"
"Text Speed [preferences(text.speed)]"