ig.

EntityLevelchange

new EntityLevelchange()

Entity that loads a level on activation.

Author:
  • Collin Hover - collinhover.com
  • Dominic Szablewski
Source:

clearPersistentEntities :Boolean

Whether all persistent entities should be cleared from game cache.

Default Value:
  • false
Source:

clearPersistentPlayer :Boolean

Whether persistent player should be cleared from game cache.

Default Value:
  • false
Source:

levelName :String

Name of the level to load.

Source:
Example
// these will all load the 'LevelTest1' level
levelchange.level = "LevelTest1";
levelchange.level = "Test1";
levelchange.level = "test1";

playerSpawnerName :String

Name of entity in new level to set as player spawn location.

Source:

activate()

Formats level name and attempts to load deferred.

Source: