Class: Sprite_Character
- Inherits:
-
RPG::Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- RPG::Sprite
- Sprite_Character
- Defined in:
- docs/4_Systems_003_Map_Engine.rb
Overview
Class that describe a Character Sprite on the Map
Constant Summary collapse
- TILE_ZOOM =
Zoom of a tile and factor used to fix coordinate
Configs.display.tilemap_settings.character_tile_zoom
- SPRITE_ZOOM =
Zoom of a Sprite
Configs.display.tilemap_settings.character_sprite_zoom
- SHADOW_TAG =
Tag that disable shadow
'§'- SHADOW_FILE =
Name of the shadow file
'0 Ombre Translucide'- REALISTIC_SHADOW =
Enable or disable realistic shadow
true- SUP_TAG =
Tag that add 1 to the superiority of the Sprite_Character
'¤'- REFLECTION_BLEND_MODE =
Blend mode for Reflection
BlendMode.new
Constants inherited from RPG::Sprite
Instance Attribute Summary collapse
-
#bush_depth ⇒ Integer
Return the Sprite bush_depth.
-
#character ⇒ Game_Character
Character displayed by the Sprite_Character.
Attributes inherited from RPG::Sprite
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
Class Method Summary collapse
-
.fix_rmxp_animations
Fix the animation file.
Instance Method Summary collapse
-
#dispose
Dispose the Sprite_Character and its shadow.
-
#dispose_reflection
Dispose the reflection sprite.
-
#dispose_shadow
Dispose the shadow sprite.
-
#init(character)
Initialize the specific parameters of the Sprite_Character (shadow, add_z etc...).
-
#init_add_z_shadow
Initialize the add_z info & the shadow sprite of the Sprite_Character.
-
#init_reflection
Init the reflection sprite.
-
#init_shadow
Initialize the shadow display.
-
#initialize(viewport, character = nil) ⇒ Sprite_Character
constructor
Initialize a new Sprite_Character.
-
#update
Update every informations about the Sprite_Character.
-
#update_bush_depth
Update the bush depth effect.
-
#update_graphics
Update the graphics of the Sprite_Character.
-
#update_load_animation
Load the animation when there's one on the character.
-
#update_pattern
Update the pattern animation.
-
#update_position ⇒ Boolean
Update the position of the Sprite_Character on the screen.
-
#update_reflection_graphics
Update the reflection graphics.
-
#update_shadow
Update the shadow.
-
#update_sprite_graphic
Update the sprite graphics.
-
#update_tile_graphic
Update the tile graphic of the sprite.
Methods inherited from RPG::Sprite
#animation, #animation_process_timing, #animation_set_sprites, #appear, #blink?, #blink_off, #blink_on, #collapse, #damage, #dispose_animation, #dispose_damage, #dispose_loop_animation, #effect?, #escape, #flash, #handle_flash, #loop_animation, #register_position, #reset_position, #update_animation, #update_loop_animation, #whiten, #x=, #y=
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
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, character = nil) ⇒ Sprite_Character
Initialize a new Sprite_Character
328 329 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 328 def initialize(, character = nil) end |
Instance Attribute Details
#bush_depth ⇒ Integer
Return the Sprite bush_depth
324 325 326 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 324 def bush_depth @bush_depth end |
#character ⇒ Game_Character
Character displayed by the Sprite_Character
321 322 323 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 321 def character @character end |
Class Method Details
.fix_rmxp_animations
Fix the animation file
388 389 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 388 def self.fix_rmxp_animations end |
Instance Method Details
#dispose
Dispose the Sprite_Character and its shadow
367 368 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 367 def dispose end |
#dispose_reflection
Dispose the reflection sprite
385 386 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 385 def dispose_reflection end |
#dispose_shadow
Dispose the shadow sprite
376 377 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 376 def dispose_shadow end |
#init(character)
Initialize the specific parameters of the Sprite_Character (shadow, add_z etc...)
332 333 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 332 def init(character) end |
#init_add_z_shadow
Initialize the add_z info & the shadow sprite of the Sprite_Character
335 336 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 335 def init_add_z_shadow end |
#init_reflection
Init the reflection sprite
379 380 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 379 def init_reflection end |
#init_shadow
Initialize the shadow display
370 371 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 370 def init_shadow end |
#update
Update every informations about the Sprite_Character
338 339 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 338 def update end |
#update_bush_depth
Update the bush depth effect
360 361 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 360 def update_bush_depth end |
#update_graphics
Update the graphics of the Sprite_Character
341 342 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 341 def update_graphics end |
#update_load_animation
Load the animation when there's one on the character
357 358 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 357 def update_load_animation end |
#update_pattern
Update the pattern animation
354 355 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 354 def update_pattern end |
#update_position ⇒ Boolean
Update the position of the Sprite_Character on the screen
351 352 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 351 def update_position end |
#update_reflection_graphics
Update the reflection graphics
382 383 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 382 def update_reflection_graphics end |
#update_shadow
Update the shadow
373 374 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 373 def update_shadow end |
#update_sprite_graphic
Update the sprite graphics
344 345 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 344 def update_sprite_graphic end |
#update_tile_graphic
Update the tile graphic of the sprite
347 348 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 347 def update_tile_graphic end |