Class: BattleUI::PokemonSprite3D

Overview

Sprite of a Pokemon in the battle when BATTLE_CAMERA_3D is true Sprite3D calculates Coordinates from the center of the Viewport

Constant Summary collapse

ANIMATION_DURATION =

Standard duration of the animations

Returns:

  • (Float)
0.75

Constants inherited from PokemonSprite

BattleUI::PokemonSprite::DELTA_DEATH_Y, BattleUI::PokemonSprite::STATUS_SE, BattleUI::PokemonSprite::STATUS_TONE

Instance Attribute Summary

Attributes inherited from PokemonSprite

#animation_handler, #animation_tone, #bank, #pokemon, #position, #scene, #selected, #stop_gif_animation, #stop_status_tone, #temporary_substitute_overwrite

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

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

Methods inherited from PokemonSprite

#bitmap=, #center_camera, #change_stat_animation, #create_animation, #cry, #done?, #flee_animation, #opacity=, #remove_tone_animation, #reset_tone_status, #set_origin, #set_position, #set_tone_status, #set_tone_to, #shiny_animation, #sprite_zoom_battle_animation, #status_animation, #substitute_animations_speed, #switch_from_substitute_animation, #switch_to_substitute_animation, #switch_to_substitute_sprite, #under_substitute_effect?, #update, #visible=, #x=, #y=

Methods included from Shader::CreatureShaderLoader

#find_shader_id, #load_shader, #load_shader_properties

Methods included from MultiplePosition

#enemy?

Methods included from GoingInOut

#animation_handler, #go_in, #go_out, #in?, #out?

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, scene, camera, camera_positionner) ⇒ PokemonSprite3D

Create a new PokemonSprite

Parameters:



2133
2134
# File 'docs/5_Battle_01_Scene.rb', line 2133

def initialize(viewport, scene, camera, camera_positionner)
end

Instance Method Details

#follower_go_in_animation

Display immediatly the Follower in the battle (only used in transition in 3D)



2174
2175
# File 'docs/5_Battle_01_Scene.rb', line 2174

def follower_go_in_animation
end

#go_in_animation(start_battle = false) ⇒ Yuki::AnimationMixin

Creates the go_in animation (Exiting the ball)

Parameters:

  • start_battle (Boolean) (defaults to: false) —

    If the animation is done at the start of a battle

Returns:



2163
2164
# File 'docs/5_Battle_01_Scene.rb', line 2163

def go_in_animation(start_battle = false)
end

#go_out_animation ⇒ Yuki::AnimationMixin

Creates the go_out animation (Entering the ball if not KO, shading out if KO)



2171
2172
# File 'docs/5_Battle_01_Scene.rb', line 2171

def go_out_animation
end

#reset_zoom

Reset the zoom of the sprite



2146
2147
# File 'docs/5_Battle_01_Scene.rb', line 2146

def reset_zoom
end

#safari_go_in_animation ⇒ Yuki::AnimationMixin

Creates the go_in animation of a Safari Battle



2167
2168
# File 'docs/5_Battle_01_Scene.rb', line 2167

def safari_go_in_animation
end

#shader_z_position

Return the basic z position of the battler



2140
2141
# File 'docs/5_Battle_01_Scene.rb', line 2140

def shader_z_position
end

#shadow

Return the shadow characteristic of the PokemonSprite3D



2143
2144
# File 'docs/5_Battle_01_Scene.rb', line 2143

def shadow
end

#sprite_zoom ⇒ Integer

Pokemon sprite zoom

Returns:

  • (Integer)


2178
2179
# File 'docs/5_Battle_01_Scene.rb', line 2178

def sprite_zoom
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2137
2138
# File 'docs/5_Battle_01_Scene.rb', line 2137

def z=(z)
end

#zoom=(zoom)

Set the zoom of the sprite

Parameters:

  • zoom (Float)


2150
2151
# File 'docs/5_Battle_01_Scene.rb', line 2150

def zoom=(zoom)
end

#zoom_x=(zoom)

Set the zoom_x of the sprite

Parameters:

  • zoom (Float)


2154
2155
# File 'docs/5_Battle_01_Scene.rb', line 2154

def zoom_x=(zoom)
end

#zoom_y=(zoom)

Set the zoom_y of the sprite

Parameters:

  • zoom (Float)


2158
2159
# File 'docs/5_Battle_01_Scene.rb', line 2158

def zoom_y=(zoom)
end