uwu Animations and more in Ren’py

uwu what’s this animation?

uwu animation
While we continue to work on the script, our programming team has gotten to work on creating animations. One of the first we are creating is the so-called uwu animation. I am still getting used to how animations work in Ren’py but I did find a way to brute force the behavior I was looking for.

uwu function

uwu function

transform uwu(x=defaultX, z=defaultZ):
xcenter x yoffset 0 yanchor 1.0 ypos 1.03 zoom z*1.00 alpha 1.00 subpixel True
easeout .25 xoffset 0
easein .25 xoffset 15
easeout .25 xoffset -15
easein .25 xoffset 15
easeout .25 xoffset 0

We are taking a simple transformation function and just moving the character back and forth. You can pass in the x location which is where it will appear horizontally. The z variable will be the scale of the sprite. As you can see from the example on the top, it creates a quick back and forth motion. You can change the easein and easeout numbers if you want to have it shorter or longer amounts of time.

excitement function

transform excited(x=defaultX, z=defaultZ, high=excitedHigh, jumptime=excitedTime):
xcenter x yoffset 0 yanchor 1.0 ypos 1.03 zoom z*1.00 alpha 1.00 subpixel True
easein jumptime yoffset high
easeout jumptime yoffset 0
easein jumptime yoffset high
easeout jumptime yoffset 0
easein jumptime yoffset high
easeout jumptime yoffset 0

Our excitement function uses the same kind of logic, except instead of left to right, the sprite moves up and down. We have more variable parameters on this function just so that we can alter the jump height and jumping time. You can also see we are using default values. For our most common variables, it is very useful to have them hard defined at the top of the code.

Development continues to move on and we are looking forward to working on the script soon. If you want more Ren’py content, read our article on translations.