Skip to content

microlith57/Microlith57MiscellaneousMechanics

Repository files navigation

microlith57's miscellaneous mechanics

Work-in-progress helper, released early with a few requested entities.

Entities:

  • Rainbow Light: light source that changes colour like rainbow spinners

Controller entities:

  • Color Packer & Unpacker: convert between a compact color representation and its RGBA/HSL components
  • Consumable Resource: interact with the player's stamina / max stamina, or a completely custom slider-driven resource
  • Focus: press a button to fade a slider and perhaps consume a resource
  • Freeze Time Active: pause Scene.TimeActive, for stunning shenanigans
  • Holdable Priority: make it so you always pick up the "correct" holdable if you are in range of several (i.e. the one closest to your hand position; configurable)
  • Lock Pause: prevent the player from retrying, or save+quitting, or pausing, or a combination of these
  • Player Facing Flag: detect the player's facing direction
  • Player Grounded Flag: detect if the player is grounded
  • Player State Name to Counter: convert a state name (potentially for a custom state) into its ID
  • Slider Controllers: control ambience, music, camera zoom, colourgrades, sounds, stylegrounds, and the time rate via sliders

Triggers and regions:

  • Holdable Bouyancy Region: makes holdables (and optionally the player) float, like it's a liquid
  • Position Tracker Region: detects the position/size of a chosen entity
  • Set Facing Trigger: sets the player's facing direction
  • Slider Camera Triggers: offset/target triggers whose properties are slider-driven
  • Slider Trigger: set a slider based on where the player is in the trigger

More mechanics are planned; if you need a mechanic, feel free to request one.

In addition, this helper contains some nonpublic stuff. All code here is released under the MIT license, with the informal proviso that I would prefer if you ask me before using or copying code from the unreleased entities, or discussing them publicly without spoiler tags.

Some code from Maddie's Helping Hand, Communal Helper, GravityHelper has been used; see their licenses.