Solarus-Games English Forum

Solarus => Development => Topic started by: Zeror on August 21, 2015, 07:13:04 PM

Title: Dynamic teleporters possible?
Post by: Zeror 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?
Title: Re: Dynamic teleporters possible?
Post by: Christopho 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.