LVNAuth Tutorials - Moving sprites
There are a number of animations that can be applied to sprites in LVNAuth, and one of those is movement.
Movement animations can be applied to character sprites, objects, or dialogue sprites. Rather than setting a pixel speed and separate stop conditions, movement in LVNAuth is defined by a target center position (X and Y), a duration in seconds, and an easing style.
Sprites can be moved horizontally, vertically, or diagonally.
One common way to use movement is to introduce a character—for example, having a character enter from off-screen on the left and glide smoothly to a stop before speaking.
All three sprite types use the same unified parameter format to start a movement:
<character_start_moving: alias, target center x, target center y, duration (seconds), easing>
<object_start_moving: alias, target center x, target center y, duration (seconds), easing>
<dialogue_sprite_start_moving: alias, target center x, target center y, duration (seconds), easing>
alias: The name/alias of the sprite you want to move.
target center x: The destination horizontal center coordinate (in pixels).
target center y: The destination vertical center coordinate (in pixels).
duration (seconds): How long the movement animation should take to finish (for example, 2.5 for 2.5 seconds).
easing: Controls the acceleration and deceleration curve of the movement.
When moving a sprite to a destination, LVNAuth uses the sprite's center point (target center x, target center y) rather than its top-left corner. Anchoring movement to the center keeps motion smooth and predictable, even if the sprite is simultaneously scaling or rotating.
You can also position a sprite directly by its center point before starting an animation using <character_set_center: alias, center_x, center_y> (or use <character_set_position_x> and <character_set_position_y> for edge-based placement).
Let's say you have a character named Theo. Here is how to place Theo just off the left edge of the screen and move him into view:
<character_show: theo>
<character_set_position_x: theo, before start of display>
<character_set_position_y: theo, bottom of display>
<character_start_moving: theo, 200, 450, 2.0, constant>
Here is what each line does:
<character_show: theo>
Makes the sprite visible so it can be animated.
<character_set_position_x: theo, before start of display>
Places Theo horizontally just before the left edge of the visual novel display so he starts off-screen.
<character_set_position_y: theo, bottom of display>
Aligns the bottom of Theo's sprite with the bottom of the visual novel display.
<character_start_moving: theo, 200, 450, 2.0, constant>
Moves Theo smoothly over 2.0 seconds until the center of his sprite reaches X = 200 and Y = 450, using a constant speed. Once the sprite reaches the destination, the movement stops automatically.
A sprite must be visible before it can be moved. Use <character_show>, <object_show>, or <dialogue_sprite_show> prior to starting a movement animation.
<character_show: theo>
If you only want to move a sprite along one axis without changing the other coordinate, pass an underscore (_) for the axis you want to leave unchanged:
# Move horizontally to center X = 300 while keeping the current Y position
<character_start_moving: theo, 300, _, 2.5, constant>
# Move vertically to center Y = 349 while keeping the current X position
<character_start_moving: theo, _, 349, 2.5, constant>
Providing new values for both target center x and target center y moves the sprite diagonally:
<character_start_moving: theo, 500, 250, 1.5, constant>
Because movement is duration-based, both the X and Y coordinates reach their destination at the exact same moment.
The easing parameter controls how a sprite accelerates and decelerates over the course of its movement. Depending on the feel you want for a scene, you can choose between constant linear motion (constant) or curved easing styles that smoothly accelerate from a standstill, glide gently to a stop, or combine both.
You can select from all available easing presets directly inside LVNAuth's Wizard window.
Although movements stop automatically once the specified duration finishes, LVNAuth provides additional commands for interrupting movement or chaining actions:
<character_stop_moving: alias>, <object_stop_moving: alias>, or <dialogue_sprite_stop_moving: alias> to halt a sprite's movement right where it currently is.<character_stop_moving: theo>
<character_after_movement_stop>, <object_after_movement_stop>, or <dialogue_sprite_after_movement_stop> to automatically trigger a reusable script as soon as the sprite finishes moving.<character_after_movement_stop: theo, theo_finished_moving>
<character_start_moving: theo, 300, 349, 2.5, constant>
| Sprite Type | Command |
|---|---|
| Character | <character_start_moving> |
| Object | <object_start_moving> |
| Dialogue Sprite | <dialogue_sprite_start_moving> |
| Sprite Type | Command |
|---|---|
| Character | <character_stop_moving> |
| Object | <object_stop_moving> |
| Dialogue Sprite | <dialogue_sprite_stop_moving> |
| Sprite Type | Command |
|---|---|
| Character | <character_after_movement_stop> |
| Object | <object_after_movement_stop> |
| Dialogue Sprite | <dialogue_sprite_after_movement_stop> |
All movement animation commands—including center coordinates, duration, and easing options—can be configured and inserted visually by clicking the Wizard button in LVNAuth.
Last updated: Wed 25 November 2026