Class: Frame

Frame

A frame for updating animations (characters, battlers, etc.)

new Frame (duration, tick, value)

Name Type Default Description
duration number The frame duration
tick number 0 optional The frame tick (= time spent since current frame)
value number 0 optional The current frame value
Properties:
Name Type Description
duration number The frame duration
tick number The frame tick (= time spent since current frame)
value number The current frame value

Methods

update (duration)boolean

Update frame according to tick and duration, return true if frame is different
Name Type Default Description
duration number this.duration optional The frame duration
Returns:
Type Description
boolean