Class: Yuki::Sprite
- Inherits:
-
Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- Yuki::Sprite
- Defined in:
- scripts/01100 Yuki/00100 Yuki__Sprite.rb
Overview
Sprite with move_to command a self “animation”
Instance Attribute Summary collapse
-
#animated ⇒ Boolean
If the sprite has a self animation.
-
#moving ⇒ Boolean
If the sprite is moving.
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#anime(arr, delta = 1)
Start an animation.
-
#anime_delta_set(v)
Change the time to wait between each animation message.
-
#eval
(also: #class_eval, #instance_eval, #module_eval)
Security patch.
-
#execute_anime(n)
Force the execution of the n next animation message.
-
#move_to(x, y, nb_frame)
Move the sprite to a specific coordinate in a certain amount of frame.
-
#stop_animation
Stop the animation.
-
#update
Update sprite (+move & animation).
-
#update_animation(no_delta)
Update the animation.
-
#update_position
Update the movement.
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Instance Attribute Details
#animated ⇒ Boolean
If the sprite has a self animation
#moving ⇒ Boolean
If the sprite is moving
Instance Method Details
#anime(arr, delta = 1)
Start an animation
#anime_delta_set(v)
Change the time to wait between each animation message
#eval Also known as: class_eval, instance_eval, module_eval
Security patch
#execute_anime(n)
this method is used in animation message Array
Force the execution of the n next animation message
#move_to(x, y, nb_frame)
Move the sprite to a specific coordinate in a certain amount of frame
#stop_animation
this method is used in the animation message Array (because animation loops)
Stop the animation
#update
Update sprite (+move & animation)
#update_animation(no_delta)
Update the animation
#update_position
Update the movement