Class: Game_Followers

Game_Followers

new Game_Followers()

The wrapper class for a follower array.

Methods

areGathered()boolean

Check if followers are gathered
Returns:
TypeDescription
booleanTrue if gathered

areGathering()boolean

Check if followers are gathering
Returns:
TypeDescription
booleanTrue if gathering

areMoving()boolean

Check if any follower is moving
Returns:
TypeDescription
booleanTrue if moving
Returns a clone of the follower array
Returns:
TypeDescription
ArrayClone of the follower data array
Get the follower at a given index
NameTypeDescription
indexnumberThe index of the follower
Returns:
TypeDescription
Game_FollowerFollower object at the given index
Gathers the followers
Hide the followers
Initialize followers settings

isSomeoneCollided(x, y)boolean

Check follower collision at the given coordinates
NameTypeDescription
xnumberThe x coordinate to check
ynumberThe y coordinate to check
Returns:
TypeDescription
booleanTrue if collided

isVisible()boolean

Check if followers are visible
Returns:
TypeDescription
booleanTrue if visible
Jump all followers (for use when player jumps)
Refresh followers

reverseData()Array

Returns a reversed clone of the follower array
Returns:
TypeDescription
ArrayReversed clone of the follower data array
Set up the followers
Show the followers

synchronize(x, y, d)

Sync the followers
NameTypeDescription
xnumberThe x coordinate to synchronize at
ynumberThe y coordinate to synchronize at
dnumberThe direction to face
Update followers
Update follower movement

visibleFollowers()Array.<Game_Follower>

Get visible followers
Returns:
TypeDescription
Array.<Game_Follower>Followers that are visible