Skip to content

Pause

Defined in: packages/isaacscript-common/src/classes/features/other/Pause.ts:44

  • Feature

isPaused(): boolean

Defined in: packages/isaacscript-common/src/classes/features/other/Pause.ts:137

Helper function to check if the pause feature from isaacscript-common is currently pseudo-pausing the game.

boolean

pause(): void

Defined in: packages/isaacscript-common/src/classes/features/other/Pause.ts:155

Helper function to emulate what happens when the player pauses the game. Use the unpause function to return things back to normal.

Under the hood, this function:

  • uses the Pause collectible on every game frame
  • disables any player inputs (except for ButtonAction.MENU_CONFIRM and ButtonAction.CONSOLE)

In order to use this function, you must upgrade your mod with ISCFeature.PAUSE.

void

unpause(): void

Defined in: packages/isaacscript-common/src/classes/features/other/Pause.ts:227

Helper function to put things back to normal after the pause function was used.

In order to use this function, you must upgrade your mod with ISCFeature.PAUSE.

void