LVNAuth Tutorials - Scaling sprites
There are a number of simple animations that can be done with sprites/images in LVNAuth and one of those types is scaling.
Scaling means making a sprite bigger or smaller.
Let's say you have a character sprite named theo. Here is an example on how to do a scaling animation by making the character twice as big.
<character_scale_by: theo, 25, scale up>
<character_scale_until: theo, 2>
<character_start_scaling: theo>
Here are the explanations for each of the lines above:
<character_scale_by: theo, 25, scale up>
This will configure the scaling animation to a speed of 25% and we're telling it to scale up (make the image gradually bigger).
<character_scale_until: theo, 2>
This will tell the scaling animation when to stop. The scaling animation will stop when the image is 2x bigger than the original size. That's what the 2 means. If you change it to 3, that would mean to stop the scaling animation when it's 3x bigger than the original.
<character_start_scaling: theo>
This will cause the scaling animation to start. Without this line, the scaling animation will not start. All the commands above this one that we've seen so far are used to configure the scaling animation, but this is the command that will actually start the scaling animation.
It's important to note that a sprite has to be visible before it can be scaled.
Use <character_show>
or <object_show>
or <dialog_sprite_show>
to make a sprite visible.
For example:
<object_show: fan>
To create an extra-slow scaling animation, consider using the command <character_scale_delay>
along with the other commands that we've already looked at on this page.
That command will let you slow down a scaling animation. You would need to experiment with the delay values to find a suitable delay setting for your sprite/image, depending on what you want to achieve in your visual novel.
Aside from character sprites, you can also move objects and dialog sprites.
All the commands for movement animations are available by clicking the Wizard button in LVNAuth.
Last updated: Fri 26 January 2024