Class: Yuki::Animation::ScalarXFromSprite
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::ScalarXFromSprite
- Defined in:
- docs/5_Battle_20_MoveAnimation.rb
Overview
Class that performs a scalar on the X 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_x, offset_x, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ScalarXFromSprite
constructor
Create a new ScalarXFromSprite 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_x, offset_x, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ScalarXFromSprite
Create a new ScalarXFromSprite convert it to another number (between 0 & 1) in order to distort time
455 456 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 455 def initialize(time_to_process, on, sprite, start_x, offset_x, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0)
Start the animation (initialize it)
459 460 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 459 def start(begin_offset = 0) end |
#update_internal(time_factor)
Update the scalar animation
463 464 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 463 def update_internal(time_factor) end |