Solarus-Games English Forum

Solarus => Development => Topic started by: Yosha on June 12, 2015, 02:32:55 PM

Title: block between two floor
Post by: Yosha on June 12, 2015, 02:32:55 PM
Hello Solarus users,

I was wondering if it was a simple way to make a block fall into a below floor, i.e. the hero push a block in a hole and go to the B1 floor to activate a switch with this block (which just fall from upstairs). Noting that the two floors are on separate maps !

Thanks
Title: Re: block between two floor
Post by: Christopho on June 12, 2015, 02:50:25 PM
Hi,
You have to do it manually. Both maps would have a block.
When the block falls in the hole, set a boolean value in the savegame.
If the boolean is false, the bottom map removes the blocks at loading time.
If the boolean is true, the upper map removes the blocks at loading time.

There is an example of this in ZSDX, in dungeon 7 for example.
Title: Re: block between two floor
Post by: Yosha on June 12, 2015, 03:58:45 PM
Thank you, I expected this.