ig.

EntityCheckpoint

new EntityCheckpoint()

Entity that triggers an update of an entity's reset state and spawns it upon death.

Author:
  • Collin Hover - collinhover.com
Source:

duration

Checkpoint should always respawn entities.

Source:

once

Checkpoint can be triggered repeatedly.

Default Value:
  • false
Source:

respawnDelay

Checkpoints should have a slight delay before respawning.

Source:

restorative :Boolean

Whether checkpoint will restore entity stats.

Default Value:
  • false
Source:

restorativeSpawn :Boolean

Whether checkpoint will restore entity stats after spawned

Default Value:
  • true
Source:

showSpawn :Boolean

Checkpoints should transition camera back to self before respawning to show respawn.

Default Value:
  • true
Source:

spawnAtRandomPosition

Checkpoint spawns entities right in middle.

Default Value:
  • false
Source:

spawnAtSide

Checkpoint spawns entities at bottom of checkpoint area.

Source:

suicidal

Checkpoint should not die after triggering.

Default Value:
  • false
Source:

triggerable

Checkpoint is spawner but should be triggerable by collision.

Default Value:
  • true
Source:

triggerAfterDelay

Checkpoints should not trigger after delay.

Default Value:
  • false
Source:

wait

Checkpoint should only be triggered occasionally.

Default Value:
  • 1
Source:

activate()

Does spawner activate and links triggering entity as well as, if ig.Checkpoint#restorative, restores its stats.

Source:

initTypes()

Initializes checkpoint types.
- adds ig.EntityExtended.TYPE.CHECKPOINT to {@link ig.EntityExtended#type}

Source:

spawned()

Does spawner activate and links triggering entity as well as, if ig.EntityCheckpoint#restorativeSpawn, restores its stats.

Source: