The main concept about adding traps, riddles or other dynamic content in the game is about triggers and actions. You can specify triggers on a tile (depending on the selected tils) and actions on another or the same tile. For example a “on_enter” trigger on one tile calls an “open” action on a door tile.

Tile Tile Triggers Tile Textures

Available triggers are:

  • onEnter
  • onLeave
  • onSwitch
  • onSwitchOn
  • onSwitchOff
  • onEnterLeave
  • onAttacked
  • onGameItemUsed
  • onGameItemDropped
  • onGameItemCollected
  • onMagic
  • onTimer

Actions:

  • teleport
  • openClose
  • open
  • close
  • hideUnhide
  • hide
  • unhide
  • custom
  • showWallText
  • hideWallText
  • castSpell
  • spawnGameItem
  • spawnMonster

Back to Tutorial Overview