Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger Entity #102

Open
Jigoku opened this Issue Feb 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Jigoku
Copy link
Owner

Jigoku commented Feb 23, 2019

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 Jigoku added the idea label Feb 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.