Introduction Creates an impassible region at the bottom that you can use for an ABS HUD.
Features Just shows a black box at the bottom of the screen that the player can't walk into.
Script
Reserved Space for HUD
CODE
#------------------------------------------------------------------------------ # * Munkis' Reserved Space for HUD V 1.1 # * Made by munkis # ╔══════════╗ # ║ FEATURES ║ # ╚══════════╝ # * Creates an impassible region at the bottom and/or that you can use for an # ABS HUD. Should be compatible with all ABS scripts, but I can't swear to # it. If you have any issues, just drop me a line at RRR. # * OVERWRITES scroll_down, scroll_right, scroll_left, and scroll_up methods # of Game_Map. # * V 1.0: Initial release # * V 1.1: Added ability to create a vertical HUD, as well as move the map # window around if you shrank it in both directions. This version # only changes the scroll methods of Game_Map; so pictures and # animations will display outside of the map area, that way you can # use simple "Show Picture" event commands to display the static HUD # graphics. This methodology also maintains compatibility with # scripts that use an in-game map for the title screen (messing with # the viewports left black bars on the screen; not a good look for a # title screen). # **NOTE: With this version, as you approach the edges # of the map, you may notice the map attempt to loop in that # direction, even though your character can't move with the map. # This is normal; just make sure your HUD graphics cover these areas. #------------------------------------------------------------------------------ module MNK_HUDSpace
#Size of scrollable area (in pixels). 32 pixels = 1 tile. #[X co-ordinate, Y co-ordinate, width, height]. AREA_SIZE = [96,32,32,32]
#------------------------------------------------------------------------------ # * Munkis' Reserved Space for HUD -- Resize & Scale Compatible Version V 1.1 # * Made by munkis # ╔══════════╗ # ║ FEATURES ║ # ╚══════════╝ # * Creates an impassible reigion at the bottom that you can use for an ABS # HUD. Should be compatible with all ABS scripts, but I can't swear to it. # If you have any issues, just drop me a line at RRR. This version is # designed to work with Originalwij's Resize & Scale. # * OVERWRITES scroll_down, scroll_right, scroll_left, and scroll_up methods # of Game_Map. # * V 1.0: Initial release # * V 1.1: Added ability to create a vertical HUD, as well as move the map # window around if you shrank it in both directions. This version # only changes the scroll methods of Game_Map; so pictures and # animations will display outside of the map area, that way you can # use simple "Show Picture" event commands to display the static HUD # graphics. This methodology also maintains compatibility with # scripts that use an in-game map for the title screen (messing with # the viewports left black bars on the screen; not a good look for a # title screen). # **NOTE: With this version, as you approach the edges # of the map, you may notice the map attempt to loop in that # direction, even though your character can't move with the map. # This is normal; just make sure your HUD graphics cover these areas. #------------------------------------------------------------------------------ module MNK_HUDSpace
#Size of scrollable area (in pixels). 32 pixels = 1 tile. #[X co-ordinate, Y co-ordinate, width, height]. AREA_SIZE = [128,96,96,96]
Customization not a whole lot to customize here; you can change the size of the impassible region (in pixels), but that's it.
Compatibility OVERWRITES create_viewports and update_viewports methods of Spriteset_Map, as well as the scroll_down method of Game_Map.
Screenshot (This screenshot is out-dated. As of V 1.1, There are no more black bars created at the edges of the screen.)
DEMO Shouldn't need one...
Installation Place in MATERIALS, above MAIN. Put the Resize & Scale compatible version under the script it was made for.
FAQ Q: ZOMG teh scripz doesn't werk!!! A: First of all, be more specific, Second, all reports typed in chat-speak or 1337-speak will be ignored.
Terms and Conditions I don't mind if this script is posted or linked on other RMVX sites AS LONG AS YOU GIVE CREDIT!!! Same goes for using this in your project. Contact me if you want to use this in a commercial project.
Credits Credit me (munkis) for the script. Kread-EX helped with a lot of it, so you should probably credit him too.
This post has been edited by munkis: Aug 15 2011, 10:51 AM
Group: Member
Posts: 54
Type: None
RM Skill: Undisclosed
Honestly, the game's default window size is already a bit too small, no need to narrow it down any further.
Personally I prefer HUD with transparent background, but if you really need a solid one, try to make it vertical, as this will allow players to have near-equal vision range in all direction.
This post has been edited by Helios: Jul 15 2011, 05:44 AM
That's why I included the Resize & Scale Compatible version, in case you thought the map was too small. But you can change the size of the black box from within the config module; just change the value of AREA_SIZE to whatever you want it to be.