Class: BattleUI::TrainerSprite3D

Overview

Sprite of a Trainer in the battle when BATTLE_CAMERA_3D is set to true

Constant Summary collapse

BACK_FRAME_COUNT =

Define the number of frames inside a back trainer

5

Constants inherited from TrainerSprite

BattleUI::TrainerSprite::DYNAMIC_BACKSPRITES, BattleUI::TrainerSprite::FADE_AWAY_PIXEL_COUNT

Instance Attribute Summary

Attributes inherited from TrainerSprite

#animation_handler, #bank, #position, #scene

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 TrainerSprite

#create_animation, #done?, #initialize, #reset_frame, #show_next_frame, #show_previous_frame, #throw_bait_mud_animation, #update

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

#initialize, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

This class inherits a constructor from BattleUI::TrainerSprite

Instance Method Details

#base_position_end_battle(position) ⇒ Array<Integer, Integer>

Get the position at the end of the battle for enemy

Parameters:

  • position (Integer) —

    position in the bank

Returns:

  • (Array<Integer, Integer>)


2283
2284
# File 'docs/5_Battle_01_Scene.rb', line 2283

def base_position_end_battle(position)
end

#create_shader

Create the Trainer Sprite 3D's shader



2264
2265
# File 'docs/5_Battle_01_Scene.rb', line 2264

def create_shader
end

#send_ball_animation

Animation of player scrolling in and out at start of battle



2274
2275
# File 'docs/5_Battle_01_Scene.rb', line 2274

def send_ball_animation
end

#set_end_battle_position(position)

Set the position of the battle_sprite for the ending phase of the battle and make it visible

Parameters:

  • position (Integer) —

    position in the bank



2278
2279
# File 'docs/5_Battle_01_Scene.rb', line 2278

def set_end_battle_position(position)
end

#shader_z_position

Return the basic z position of the trainer



2271
2272
# File 'docs/5_Battle_01_Scene.rb', line 2271

def shader_z_position
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2268
2269
# File 'docs/5_Battle_01_Scene.rb', line 2268

def z=(z)
end