boxclip icon indicating copy to clipboard operation
boxclip copied to clipboard

Trigger Entity

Open Jigoku opened this issue 5 years ago • 0 comments

I hope to eventually add support for triggers. This would consist of a placable entity (much like a platform) although invisible outside of the editor.

Concept;

Placing trigger entities;

  • trigger 1
  • trigger 2
  • trigger 3

Would trigger a function of code defined within the map file; such as:

  • world.map.trigger1 = function() print ("1 triggered") end
  • world.map.trigger2 = function() print ("2 triggered") end
  • world.map.trigger3 = function() print ("3 triggered") end

This would be used to allow programmable cut-scenes, temporarily altering the game state (disabling character movement, allowing scripted actions). Or simply for certain entities to move/do something when the player collides with a trigger entity.

Jigoku avatar Feb 23 '19 09:02 Jigoku