Skip to main content
The LevelColor enum identifies the twelve distinct colors used to label portal sides in a RollingQuest level. Each portal entrance or exit is associated with one of these colors, and you use the enum value to retrieve or configure that portal side via calls such as Level.getPortalSide(color). Choosing the right color constant ensures your script targets the correct portal when multiple portals exist in the same level.

Values

Usage Example

The example below retrieves the red portal side and enables it, then retrieves the blue portal side and disables it based on a game condition:
You can also iterate over several colors to reset all portals at once: