Skip to main content

Player Center

Functions

movePlayersToCenter

movePlayersToCenter(radius?): void

Helper function to move all of the players to where they would normally go when arriving at a new floor. (In normal mode, this is the center of the room. In Greed Mode, this is below the top door.)

If there is more than one player, they will be distributed around the center in a circle.

This function emulates what happens in the vanilla game when you travel to a new floor.

Parameters

NameTypeDefault valueDescription
radiusfloat10Optional. The radius of the circle. Default is 10.

Returns

void

Defined in

packages/isaacscript-common/src/functions/playerCenter.ts:22