Module: PSP

Defined in:
docs/5_Battle_99_Pokemon_Script_Project.rb

Overview

noyard

Constant Summary collapse

MOVE_TO_ID_ANIMATION_TARGET =

Mapping move ID to animation ID for target

Returns:

  • (Hash{Integer => Integer, nil})
load_data('Data/PSP_MTAT.dat')
MOVE_TO_ID_ANIMATION_USER =

Mapping move ID to animation ID for user

Returns:

  • (Hash{Integer => Integer, nil})
load_data('Data/PSP_MTAU.dat')

Class Method Summary collapse

Class Method Details

.animation(src_sprite, id, reverse = false)

Perform an animation on a sprite

Parameters:

  • src_sprite (RPG::Sprite) —

    source sprite

  • id (Integer) —

    ID of the animation

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

    is the animation reversed



56
57
# File 'docs/5_Battle_99_Pokemon_Script_Project.rb', line 56

def animation(src_sprite, id, reverse = false)
end

.dispose_sprite

Dispose the main sprite



50
51
# File 'docs/5_Battle_99_Pokemon_Script_Project.rb', line 50

def dispose_sprite
end

.make_sprite(viewport = nil)

Create the main sprite

Parameters:

  • viewport (Viewport, nil) (defaults to: nil) —

    viewport of the sprite



47
48
# File 'docs/5_Battle_99_Pokemon_Script_Project.rb', line 47

def make_sprite(viewport = nil)
end

.move_animation(usr_sprite, trg_sprite, move_id, reverse = false)

Perform the move animation based on the move ID

Parameters:

  • usr_sprite (PokemonSprite, PokemonSprite3D) —

    sprite of the user

  • trg_sprite (PokemonSprite, PokemonSprite3D) —

    sprite of the target

  • move_id (Integer) —

    ID of the move

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

    is the animation reversed



63
64
# File 'docs/5_Battle_99_Pokemon_Script_Project.rb', line 63

def move_animation(usr_sprite, trg_sprite, move_id, reverse = false)
end