Class: UI::ShinyAnimation

Constant Summary collapse

COLUMNS =
12
ROWS =
10
MAX_INDEX =
COLUMNS * ROWS - 1

Instance Attribute Summary

Attributes inherited from SpriteSheet

#nb_x, #nb_y, #sx, #sy

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods included from RecenterSprite

#add_position, #recenter

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, z, bank, scene = $scene) ⇒ ShinyAnimation

Create a new ShinyAnimation

Parameters:



2388
2389
# File 'docs/5_Battle_02_Visual.rb', line 2388

def initialize(viewport, z, bank, scene = $scene)
end

Instance Method Details

#animation_progression=(progression)

Function that change the sprite according to the progression of the animation

Parameters:

  • progression (Float)


2392
2393
# File 'docs/5_Battle_02_Visual.rb', line 2392

def animation_progression=(progression)
end

#x_offset ⇒ Integer

Return the x offset for the Shiny Animation

Returns:

  • (Integer)


2404
2405
# File 'docs/5_Battle_02_Visual.rb', line 2404

def x_offset
end

#y_offset ⇒ Integer

Return the y offset for the Shiny Animation

Returns:

  • (Integer)


2408
2409
# File 'docs/5_Battle_02_Visual.rb', line 2408

def y_offset
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2400
2401
# File 'docs/5_Battle_02_Visual.rb', line 2400

def z=(z)
end

#zoom_value ⇒ Integer

return the zoom value for the bitmap

Returns:

  • (Integer)


2396
2397
# File 'docs/5_Battle_02_Visual.rb', line 2396

def zoom_value
end