Class: Yuki::Animation::ScalarYFromSprite
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::ScalarYFromSprite
- Defined in:
- docs/5_Battle_20_MoveAnimation.rb
Overview
Class that performs a scalar on the Y axis from sprite 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, on, sprite, start_y, offset_y, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ScalarYFromSprite
constructor
Create a new ScalarYFromSprite convert it to another number (between 0 & 1) in order to distort time.
-
#start(begin_offset = 0)
Start the animation (initialize it).
-
#update_internal(time_factor)
Update the scalar 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, on, sprite, start_y, offset_y, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ScalarYFromSprite
Create a new ScalarYFromSprite convert it to another number (between 0 & 1) in order to distort time
477 478 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 477 def initialize(time_to_process, on, sprite, start_y, offset_y, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0)
Start the animation (initialize it)
481 482 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 481 def start(begin_offset = 0) end |
#update_internal(time_factor)
Update the scalar animation
485 486 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 485 def update_internal(time_factor) end |