Author Topic: Dynamic teleporters possible?  (Read 1061 times)

Zeror

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Dynamic teleporters possible?
« on: August 21, 2015, 07:13:04 pm »
I was wondering if it would be possible to create a dynamic teleporter.
So one teleporter leads to different destinations based on an event.

The idea I have is to create a dungeon system which changes when defeated to a harder version of the dungeon so you have a reason to go back to gather more.

What way could be the best way to do it?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Dynamic teleporters possible?
« Reply #1 on: August 21, 2015, 07:24:47 pm »
Yes, you can do that by directly calling hero:teleport().
Or you can use a normal teletransporter, and define its on_activated() event to change its destination at the very last moment.
Or you can also make two teletransporters, enabling one and disabling the other one.