Class: Yuki::Animation::MoveParticleOffsetAnimation
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::MoveParticleOffsetAnimation
- Defined in:
- docs/5_Battle_20_MoveAnimation.rb
Overview
Class that performs a move particle animation with offset
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, offset_x, offset_y, from_center: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ MoveParticleOffsetAnimation
constructor
Create a new MoveParticleOffsetAnimation.
-
#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, offset_x, offset_y, from_center: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ MoveParticleOffsetAnimation
Note:
Create an animation between two sprites with the possibility to apply an offset in both coordinates between the sprites
Create a new MoveParticleOffsetAnimation
209 210 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 209 def initialize(time_to_process, particle, from, to, offset_x, offset_y, from_center: false, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0)
Start the animation (initialize it)
213 214 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 213 def start(begin_offset = 0) end |
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation
217 218 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 217 def update_internal(time_factor) end |