Skip to content

Zones

gdmp zone <name> [w=<W>] [h=<H>] [once] [cooldown=<s>] : <action>; <action> ...

A rectangle centred on the text object that fires when a player enters it. 30 units = one block; a zone is 30 × 30 by default.

  • name: letters, digits and _ . : -, unique in the level.
  • once: fires for the first player only. In a game with rounds that is once per round, so a coin comes back.
  • cooldown=: ignores entries for that many seconds after it fired.
Action What it does Default target
checkpoint the player respawns here from now on (this round) self
finish race: the player finished (placed 1st, 2nd…); other modes: announced self
score <n> add n points (−1000..1000) self
kill [self|others|all] survival: out; other modes: respawn self
say <text> show a message to the player who entered (≤ 48 characters) self
announce <text> show a message to everyone (≤ 48 characters) all
spawn <group> [self|others|all] fire GD’s own spawn group (your Spawn-triggered GD triggers: move a door, raise spikes…) all
teleport <x> <y> [self|others|all] move player(s) self
respawn [self|others|all] GD’s restart for player(s) self
freeze <s> [self|others|all] hold player(s) in place for s seconds self
hide / show [self|others|all] stop / start drawing player(s) for everyone else self
buy <item> GDMP asks the player who entered whether they want to buy that item from your store self

Separate actions with ;. A say or announce text runs to the next ;, so it may contain commas.

gdmp zone cp1 w=60 h=120 : checkpoint; say Checkpoint 1!
gdmp zone flag w=60 h=180 : finish
gdmp zone coin3 once w=40 h=60 : score 1; say +1 coin
gdmp zone lava w=300 : kill
gdmp zone button cooldown=3 : spawn 31 all; announce The trap is up!
gdmp zone shop1 w=40 h=90 cooldown=6 : buy vip
Studio Demo, "gdmp zone opener : spawn 100 all": walking into the zone fires GD's own Move trigger and the gate lifts.