RPG::Animation::Timing
Data class for the timing of an animation's SE and flash effects.
Superclass
Referrer
Attributes
frame
Frame number. 1 less than the number displayed in RPGXP.
se
SE, or sound effect (RPG::AudioFile).
flash_scope
Flash area (0: none, 1: target, 2: screen; 3: delete target).
flash_color
Flash color (Color).
flash_duration
Flash duration.
condition
Condition of the effect (0: none, 1: hit, 2: miss).
Definition
module RPG
class Animation
class Timing
def initialize
@frame = 0
@se = RPG::AudioFile.new("", 80)
@flash_scope = 0
@flash_color = Color.new(255,255,255,255)
@flash_duration = 5
@condition = 0
end
attr_accessor :frame
attr_accessor :se
attr_accessor :flash_scope
attr_accessor :flash_color
attr_accessor :flash_duration
attr_accessor :condition
end
end
end
Last updated