Floating Roofs [MV/MZ]

● ARCHIVED · READ-ONLY
Started by szatkus 14 posts View original ↗
  1. Floating Roofs

    Introduction
    Plugin generating roof tiles that could appear and disappear on command.

    Features
    The plugin automatically generates roofs over tiles with region ids. By default it converts region ids from 1-40 to corresponding tiles in the A3 and A4 tilesets, but the range could be changed in the configuration.

    Video
    [embedded media]

    How to Use
    Roofs can be also controled by two commands, 'showRoof' and 'hideRoof'. Without any arguments they take effect on the nearest roof. Optionally you can provide x and y of any tile that lies within a roof.

    Example (for MV): hideRoof 4 6

    You can disable that plugin completely for specifics maps by adding #noroofs to the map note.

    The plugin has two params
    Delay - A duration of the appear/disappear animation (in milliseconds). Use 0 to disable animation.
    Shift - Shift region ID by the given value. The default value is 0 and 1-40 regions are used. Useful if you already use the lower regions for different purposes.

    Download
    Floating Roofs by szatkus
    Terms and Credits
    MIT License
  2. This is great. Is there a way to use variables for x and y coordinates? I couldn't figure out the script call.
  3. twosnakes said:
    This is great. Is there a way to use variables for x and y coordinates? I couldn't figure out the script call.
    You can call plugin commands with a script call https://forums.rpgmakerweb.com/index.php?threads/script-call-to-plugin-command.139593/

    You just have to pass args ("x" and "y") with $gameVariables.value(n)

    e.g.

    JavaScript:
    PluginManager.callCommand($gameMap._interpreter, 'FloatingRoofs', 'hideRoof', {x: $gameVariables.value(1), y: $gameVariables.value(2)});
  4. This is so cool! Does this hide/cover also events with graphics?

    Ps. Miło widzieć dzieło rodaka :)
  5. This is in fact ridiculously clever.
  6. fizzly said:
    This is so cool! Does this hide/cover also events with graphics?

    Ps. Miło widzieć dzieło rodaka :)
    Yes, roof sprites are above almost anything else on the map (just one layer below the destination sprite).
  7. That's neat! Thank you so much.
  8. This is so cool!
  9. szatkus said:
    e.g.

    JavaScript:
    PluginManager.callCommand($gameMap._interpreter, 'FloatingRoofs', 'hideRoof', {x: $gameVariables.value(1), y: $gameVariables.value(2)});
    this wont work for MV though.

    but while the roof thing is cool, there is no overlapping bit for +4 or +8 pixels to extend to the sides.
    but it has some cool idea, but looks weird if you cannot use point room, but only flat where it would
    works best.
  10. Hmm... I wonder if this could be used to implement secret passages as well.
  11. Like in ozzie lair in chrono trigger or honestly most isometric rpgs like arcanum with houses out in the open, yes, I gotta say again I'm impressed
  12. Maliki79 said:
    Hmm... I wonder if this could be used to implement secret passages as well.
    I think it could work if you put a B tile into the roof tile setting nicely?

    it would be creative, but I use something else for secret passage, while it's keeps hiding the player,
    I create a shadow look to track the player location :)

    but this could show the passage once inside, but if it has corners, it should probably be hidden
    as well until you face the direction or something?
  13. Sounds like it MIGHT be more trouble than it's worth, but eh. Ok.
    Thx for the insight.
  14. This is awesome! Reminds me of the classic Fallouts :LZYgrin: