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

squares that cause teleportation #168

Open
picobyte opened this issue Feb 23, 2020 · 1 comment
Open

squares that cause teleportation #168

picobyte opened this issue Feb 23, 2020 · 1 comment

Comments

@picobyte
Copy link
Contributor

Allow for squares, the player can step on, that cause teleportation. Two kinds: a teleportation that is unrecognizable by the square used, and another kind that is recognizable.

@Grokmoo
Copy link
Owner

Grokmoo commented Feb 24, 2020

I like this idea, and it could make for some fun puzzle or maze like areas. I pushed a change to allow triggers to fire repeatedly to support this.

This is pretty straightforward to do right now. Just create an OnPlayerEnter trigger at the desired location and hook it up with an on_activate with fire_script. In the script, use the teleport_to on the parent who triggered the script. You can put whatever prop / tile in the trigger's space (or not) if you want to show it.

We do something quite similar right now in a number of places in the campaign:

Example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants