Player Animation Controller - UQcsse3200/2026-studio-4 GitHub Wiki

Introduction

The player animation controller is a component class that controls which animation the player sprite is currently playing.

Usage

The player animation controller has two public methods.

  • update() Restarts the movement/idle animation when the attack animation has finished.
  • create() Accesses the animator for the entity and stores it in the class. Sets up the listeners for the events that need animations.