Character shake not screen [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.
-
- Regular
- Posts: 74
- Joined: Wed Feb 10, 2016 1:20 am
Re: Character shake not screen [Solved]
Thanks for posting that shake transformation. I had one teeny tiny mistake and it just wouldn't work. Now it does.
- rusicaria
- Regular
- Posts: 84
- Joined: Sat Mar 28, 2020 12:26 am
- Projects: VivaCity (VN)
- Tumblr: rusicariaGAMES
- itch: rusicariaGAMES
- Contact:
Re: Character shake not screen [Solved]
Hey, I just had to thank you for this! I've been searching for this everywhere step by step because I'm so new to coding!Donmai wrote: ↑Tue Jul 28, 2015 5:49 pm You should read the quickstart, lowkey. And play through the tutorial game, and study the script of The Question. You can find the quickstart here: http://www.renpy.org/doc/html/quickstart.html
To better answer your question, you can put that transform definition anywhere. Most people put it at the start of the 'script.rpy' file. Or you can create a new 'transforms.rpy' file and put it there.
To use that transform on a sprite you just do as suggested, at the moment of showing that sprite.
Try this: run Ren'py and load 'The Question'. On the launcher screen, click on 'Navigate Script'. On the 'Category' list, make sure the files tab is selected. Click on the '+Add Script File' button. Type transforms.rpy and press the return key. A 'transforms.rpy' will be added to the current project. Highlight the text of the shake transform definition and paste it on the 'transforms.rpy' file. Make sure it looks like this:Save that file.Code: Select all
transform shake: ease .06 yoffset 24 ease .06 yoffset -24 ease .05 yoffset 20 ease .05 yoffset -20 ease .04 yoffset 16 ease .04 yoffset -16 ease .03 yoffset 12 ease .03 yoffset -12 ease .02 yoffset 8 ease .02 yoffset -8 ease .01 yoffset 4 ease .01 yoffset -4 ease .01 yoffset 0
Now edit the 'script.rpy' file of The Question. Navigate to line 89. ChangetoCode: Select all
show sylvie surprised
Save the file.Code: Select all
show sylvie surprised at shake, center
Now play the game (choose 'ask her right away'). Keep playing. You will see that Sylvie will "tremble" with surprise when she hear the question.
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Character shake not screen [Solved]
I'm glad to know you have found it useful.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot]