MV SDJB_GridMapScene

PluginName: SDJB_GridMapScene
Author: ShadowDragon

Read how it works in spoilers.
Spoiler: How it works
Code:
A simple GridMap Scene to be unlocked by maps.

Parameter Settings
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
Variable Id:        Set a variable Id to use, to insert an array built.
Grid Icon Repeat:   How many icons you want to create.
                    Repeat it a number of times, equal to rows and colums set.
Grid Icon File:     Select the file Hight is iconsize, width iconsize 3 (default 32x96).
                    Grid Icon File is location inside the img/pictures/ folder.
Grid Icon Size:     The size of the icon used (default 32x32).
GridMap Background: The background is optional, leave blank for not using.
                    GridMap Background is location inside the img/pictures/ folder.
Window Visibility:  Hide the Grid Window if you use a background, you can hide it if
                    you don't use a background as well. (default false).
Window Width:       Set the window Width size default 600.
Window Height:      Set the window Height size default 600.
GridMap rows:       How many Icons in a row? (default 10).
GridMap Columns:    How many Icons in a column? (default 10).
Icon Offset X, Y:   You can use the offset if required, (default 5). (min = -20)
Indicator Offset Y: Depending on the shape, set the offset Y value (use -value) (default 5).
                    Currently disabled, so no effect based on value!

Pointer File:       Current location on the scene.
                    Point File is loacated inside img/system/ folder
Pointer Frames:     How many frames it has (default 4).
Pointer Speed:      How fast the pointer moves (default 10).
Pointer OffsetX/Y   How many offset of the pointer? (default x: 0, y: -5)


How it works
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
The amount of icons set in "Grid Icon Repeat" is the amount of icons you see.
even if the Icon Rows/Columns are higher, less can be given.
You can unlock each grid by turning it ON or OFF (default show is true) for easier use.
You may use a background as map layout to unlock (leave icon slot empty.)
The 3 icons order are read as follows:  locked, unlocked, player location.
Rows and Columns have been capped, but you can use more icons, you can use the
"Mouse Wheel" or "pagedown/pageup" buttons to scroll faster.
If using a sprite cursor for the scene, make the 3rd icon of the Grid Icon File blank,
or use 2 Icons on the file (both works fine).
Adjust the sprite speed, and cursor (use the same width of the Grid Icon) you use for
the cursor pointer, and height is what suits you.


Scriptcalls to unlock/lock grid
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
To open the scene, use the scriptcall:
SceneManager.push(Scene_GridMap)

The next scriptcall is used as follows (using transfer must be on each on).

unlockMapRoom(index, indicator, value)

index       = the array index (default 0-99) for 100 icons.
indicator   = indicator is true by default, so set to false hide it.
value       = true by calling the index

unlockMapRoom(4)

This unlock the room and indicator is visible, this also automatically turns
itself off when you enter a new map/room with a new scriptcall and index.

unlockMapRoom(4, false, false)

Set the map/room to be locked, if you recall it, the value is true, so make
sure you set the indicator to true.

YEP_MainMenuMenu compatibility
      Name: "any name"
    Symbol: gridMap
      Show: true
   Enabled: true
       Ext:
 Main Bind: this.commandGridMap.bind(this)
Actor Bind:

How it looks like (trimmed down image) (top is locked, bottom is unlocked)
GMS1.png


while the cursor is static on top, you can leave it (3rd icon) and animate it instead:
GMSonSpot.gif
GMSaniOnSpot.gif


However you make your cursor and size is up to you 🙂

If there is any issues or problems, feedback, suggestions, let me know.

=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB

Version + UPDATE'S
25-03-2025 Version 0.0.1 first release
26-03-2025 Version 0.0.2 removed array creation, replaced with repeats.
27-03-2025 Version 0.0.3 added how to call the scene to the helpfile.
added limit to row/column for now.
28-03-2025 Version 0.0.4 added offset and indicator Y position.
30-03-2025 Version 0.0.5 removed keypresses for scroll (only mouse wheel and right-click works).
added animated Pointer for current location.
added params to adjust the pointer if needed.


=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.

(file is below as it require my base plugin (SDJB_Base or SDJB_BaseMZ (minified version))
leave Feedback and or suggestions.

Original thread: https://forums.rpgmakerweb.com/threads/sdjb_gridmapscene.176672/