# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-animation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
