Skip to content

Player Center

movePlayersToCenter(radius?): void

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

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.

float = 10

Optional. The radius of the circle. Default is 10.

void