Author Topic: block between two floor  (Read 1588 times)

Yosha

  • Newbie
  • *
  • Posts: 37
    • View Profile
block between two floor
« 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

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1182
    • View Profile
Re: block between two floor
« Reply #1 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.

Yosha

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: block between two floor
« Reply #2 on: June 12, 2015, 03:58:45 pm »
Thank you, I expected this.