LVNAuth Tutorials - Moving sprites

Moving animation

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.

Command syntax

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>

Center-based positioning

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).

Example: Moving a character onto the screen

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:

  1. <character_show: theo>
    Makes the sprite visible so it can be animated.

  2. <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.

  3. <character_set_position_y: theo, bottom of display> Aligns the bottom of Theo's sprite with the bottom of the visual novel display.

  4. <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.

Sprites need to be visible

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>

Moving horizontally or vertically only

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>

Diagonal movement

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.

Easing

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.

Stopping a movement and running post-movement scripts

Although movements stop automatically once the specified duration finishes, LVNAuth provides additional commands for interrupting movement or chaining actions:

<character_stop_moving: theo>
<character_after_movement_stop: theo, theo_finished_moving>
<character_start_moving: theo, 300, 349, 2.5, constant>

Supported movement commands

Start moving

Sprite Type Command
Character <character_start_moving>
Object <object_start_moving>
Dialogue Sprite <dialogue_sprite_start_moving>


Stop moving

Sprite Type Command
Character <character_stop_moving>
Object <object_stop_moving>
Dialogue Sprite <dialogue_sprite_stop_moving>


After movement stop

Sprite Type Command
Character <character_after_movement_stop>
Object <object_after_movement_stop>
Dialogue Sprite <dialogue_sprite_after_movement_stop>


Wizard

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