My game used to use the Shake Effect in the outdated Ren'Py cookbook (found here https://www.renpy.org/wiki/renpy/doc/co ... ake_effect ) and with the new updates with the new Position type variable, is it at all possible to receive some help with updating this Effect's code to where I would not need to include the "define config.mixed_position = False" line typically required for fixing this?
It seems to be tied to trying to use xpos and ypos (now the new Position variable) in a math calculation when it's expecting an integer for this portion of the code
nx = xpos + (1.0-t) * self.dist * (renpy.random.random()*2-1)
ny = ypos + (1.0-t) * self.dist * (renpy.random.random()*2-1)
How to Update Outdated Shake Effect
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.
-
- Newbie
- Posts: 1
- Joined: Sat Jul 10, 2021 3:55 pm
- Contact:
Re: How to Update Outdated Shake Effect
Code: Select all
transform shake2(rate=0.090):
linear rate xoffset 2 yoffset 0
linear rate xoffset -2.8 yoffset 2
linear rate xoffset 2.8 yoffset 0
linear rate xoffset -2 yoffset 2
linear rate xoffset +0 yoffset +0
repeat
transform shake3(rate=0.090):
linear rate xoffset 2
linear rate xoffset -2.8
linear rate xoffset 2.8
linear rate xoffset -2
linear rate xoffset +0
repeat
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], konimyun