> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation.md).

# RPG::Animation

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Attributes

### id

The animation ID.

### name

The animation name.

### animation\_name

The animation's graphic file name.

### animation\_hue

The adjustment value for the animation graphic's hue (0..360).

### position

The animation's position (0: top, 1: middle, 2: bottom, 3: screen).

### frame\_max

Number of frames.

### frames

Frame contents. An [RPG::Animation::Frame](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation-frame.md) array.

### timings

Timing for SE and flash effects. An [RPG::Animation::Timing](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation-timing.md) array.

## Inner Classes

* [RPG::Animation::Frame](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation-frame.md)
* [RPG::Animation::Timing](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation-timing.md)

## Definition

```ruby
module RPG
  class Animation
    def initialize
      @id = 0
      @name = ""
      @animation_name = ""
      @animation_hue = 0
      @position = 1
      @frame_max = 1
      @frames = [RPG::Animation::Frame.new]
      @timings = []
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :animation_name
    attr_accessor :animation_hue
    attr_accessor :position
    attr_accessor :frame_max
    attr_accessor :frames
    attr_accessor :timings
  end
end
```
