Using liquid tiles, instant death, and damage objects

Knowledgebase / Using liquid tiles, instant death, and damage objects

liquid-damage-instant-death

Liquid tiles and damage objects from the Gamefroot Classic Pack have a Constant Damage script attached to them, which makes them damage characters over and over again while the character keeps touching them. This works with player characters and NPCs.
To change its properties, right-click on it and select Instance Properties.
constant-damage
These are the properties you can change on a liquid tile or damage object:
  • Hazard tag: the player and NPC scripts use this tag to figure out if they’re touching something hazardous (default is hazard).
  • Active: Set this to true to make this object damage the character when the character touches it.
  • Delay between blows: The time it takes to damage the character again (while the character is touching this object). The time is in milliseconds, with 1000 ms = 1 second.
  • Damage: The amount of damage inflicted to the character’s health.
Instant death objects from the Gamefroot Classic Pack have a Spike script attached to them which makes them kill any character that touches them. This works on the Player and on NPCs.
To change its properties, right-click on it and select Instance Properties.
instant-death
These are the properties you can change on a switch:
  • Hazard tag: the player and NPC scripts use this tag to figure out if they’re touching something hazardous (default is hazard).
  • Active: Set this to true to make this object kill the character when the character touches it.