Class: Yuki::Animation::MoveParticleAnimation
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::MoveParticleAnimation
- Defined in:
- docs/5_Battle_20_MoveAnimation.rb
Overview
Class that performs a move particle animation
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #time_source
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#initialize(time_to_process, particle, from, to, proportion_x = 1, proportion_y = 1, use_zoom: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ MoveParticleAnimation
constructor
Create a new MoveParticleAnimation if 0, it will stay on the origin, at 1 it can placed everywhere on the sprite.
-
#start(begin_offset = 0)
Start the animation (initialize it).
-
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation.
Methods inherited from TimedAnimation
#done?, #duration, #parallel_add, #play_before, #update
Methods included from Yuki::AnimationMixin
#begin_offset_for_next_animation, #done?, #duration, #update
Constructor Details
#initialize(time_to_process, particle, from, to, proportion_x = 1, proportion_y = 1, use_zoom: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ MoveParticleAnimation
Create an animation between two sprites, an offset will be randomly choose for each coordinates depending of the proportion parameters,
Create a new MoveParticleAnimation if 0, it will stay on the origin, at 1 it can placed everywhere on the sprite
184 185 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 184 def initialize(time_to_process, particle, from, to, proportion_x = 1, proportion_y = 1, use_zoom: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0)
Start the animation (initialize it)
188 189 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 188 def start(begin_offset = 0) end |
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation
192 193 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 192 def update_internal(time_factor) end |