Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
m2 "{size=+35}KYAAAAAA!!!{/size}"
show c1
with Shake((0.5, 1.0, 0.5, 1.0), 1.0, dist=5)
"My feet let go of the edge of the staircase and I let out a scream."
But what I'm wondering is if the screen can be shaking continuously while text goes across the screen? Because right now, I can only get the screen to shake, stop, then the text appears. So what I'm wondering is if I can get this to happen... simultaneously.
If not, that's cool. I just thought it would make it seem more realistic XD
Last edited by teacup on Tue May 31, 2011 5:23 pm, edited 1 time in total.
teacup wrote:@Camille
That actually did the same thing as before. I guess 'with shake' and 'at shake' are the same thing :p
@Alex
Sweet, this worked Thank you sir!
That's strange, because I use that exact same code in my own VN (for an explosion) and it works fine for me. ^^; I'm glad you got something to work for you, though!
1. not sure what you mean by that? You can just put them at the start of the file if you want, or at the end, long as they're outside labels. You can even create a separate .rpy file and put all your init and defines in there.
2. I don't see how pausing a second would be noticeable by your players - considering everything else will continue happening so the pause won't be perceivable.
If you meant you want it to shake, then pause for a second, before shaking again on repeat then you put a pause 1.0 above the repeat statement.
For 1.: Huh, I see. Maybe I'll try that. I dunno, putting in an init block just felt really clumsy, at least to me.
For 2.: Well, I was asking more about stopping the shaking, because once I called it, it wouldn't stop. Let me guess, though: I have to call scene already_shaken_room at center?
If you want to stop the shaking, then try ditching the repeat line first (that's what makes it continuous), but you'll probably find it too short then - then you can ask it to repeat a fixed number of times - try repeat 2, repeat 5, repeat 10, until you're happy with the result
kivik wrote: ↑Fri May 04, 2018 5:04 am
If you want to stop the shaking, then try ditching the repeat line first (that's what makes it continuous), but you'll probably find it too short then - then you can ask it to repeat a fixed number of times - try repeat 2, repeat 5, repeat 10, until you're happy with the result
Ah, okay.
One last thing, about the empty screen behind the scene image during the shake: can I hide it by making the scene image bigger?