Class: Yuki::Animation::ParticleOnSpriteOffset

Inherits:
Command show all
Defined in:
docs/5_Battle_20_MoveAnimation.rb

Overview

Place a particle on a sprite with an offset

Instance Attribute Summary

Attributes inherited from TimedAnimation

#begin_time, #end_time, #time_source

Attributes included from Yuki::AnimationMixin

#player, #resolver

Instance Method Summary collapse

Methods inherited from Command

#duration, #start, #update

Methods inherited from TimedAnimation

#done?, #duration, #parallel_add, #play_before, #start, #update

Methods included from Yuki::AnimationMixin

#begin_offset_for_next_animation, #done?, #duration, #start, #update

Constructor Details

#initialize(particle, on, offset_x = 0, offset_y = 0) ⇒ ParticleOnSpriteOffset

Create a new ParticleOnSpriteOffset

Parameters:

  • particle (Sprite, Sprite3D) —

    sprite that will be placed

  • on (PokemonSprite, PokemonSprite3D) —

    based on which Sprite dimension it will be placed

  • offset_x (Integer) (defaults to: 0) —

    (by default 0)

  • offset_y (Integer) (defaults to: 0) —

    (by default 0)



279
280
# File 'docs/5_Battle_20_MoveAnimation.rb', line 279

def initialize(particle, on, offset_x = 0, offset_y = 0)
end