Shaking Screen?
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.
Shaking Screen?
Hey when shaking the screen how do you tell ren'py how long to shake the screen before stopping?
Might help.
http://www.renpy.org/wiki/renpy/doc/coo ... ake_effect
http://www.renpy.org/wiki/renpy/doc/coo ... ake_effect
with Shake((0, 0, 0, 0), 3.0, dist=30)
# some serious shaking of the screen for 3 seconds
Administrator @ Adventure Maker
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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:
You can change the amount of shaking by changing the 3.0 to some other number.
That also works for the built in shakes, similar to hpunch and vpunch.
For both of these, the 1.0 is the amount of time to shake for, in seconds. The .10 is the amount of time per shake, while the 10 or 15 is the number of pixel to shake by.
That also works for the built in shakes, similar to hpunch and vpunch.
Code: Select all
init:
$ vpunch1s = Move((0, 10), (0, -10), .10, bounce=True, repeat=True, delay=1.0)
$ hpunch1s = Move((15, 0), (-15, 0), .10, bounce=True, repeat=True, delay=1.0)
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?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Google [Bot]