Skip to content

Creator recipes

Start from the result you want. Each recipe uses Workshop controls first and links to exact API details second.

Make a collectible

  1. Add Collectible from Pieces.
  2. Confirm its Collider is Sensor.
  3. Open Logic and attach touch → score +1 → destroy.
  4. Test by touching it twice; the score should change once.
text
riftscript 1;
event player_touched {
  score.add(1);
  effects.play("coin_pickup");
  world.destroy();
}

Open Platformer Starter in Workshop

Make a delayed door

Tag the door exit_door. Emit a named signal or schedule it with a timer on the same behavior, then move or disable the resolved entity through the trusted entity API. Prefer a built-in component when it already expresses the interaction.

Make a checkpoint and hazard

Add Checkpoint to one Sensor object and Respawn hazard to another. Test the hazard before and after touching the checkpoint. See checkpoints and hazards.

Add an accessible sound cue

Attach an approved clip to Audio Source, choose the correct bus, and add a visible change or text alternative when the cue matters to play. Call audio.play() only for the owning object's reviewed clip. See audio assets.

PixelRifts creator documentation · generated reference · protocol 21