Aspen's movement is powered by Unity's 2D physics engine, which allows for control over factors such as acceleration and deceleration, which help to make their movement feel satisfying. The method that applies velocity to Aspen, MoveThePlayer(), is called in the first line of FixedUpdate().
Since Aspen could glide after jumping, their gravity scale had to be updated depending on if they were gliding. The factor at which the force of gravity is lessened is able to be set by designers in the inspector.
Return to Luminaria pageThe DialogueAnimation class communicates with the animation graphs for each NPC, and sets the parameters for animations transitions within the graph. The standard talking animation plays while the character is talking, and the nod or gesture animation plays when the player advances dialogue.
Return to Luminaria page