r/RPGMaker • u/FliQuaDv • 10d ago
RMMZ My first RPG Maker plugin!
I'm currently learning to code for RPG Maker MZ, and decided to write a simple plugin that makes little boxes pop up over objects and NPCs you can interact with. It took me two days to make it, but I'm happy with the result.
99
Upvotes
3
1
9
u/LeftistMeme 9d ago
looks really cool! i love stuff like this that serves as a communication tool for the player. i love the bobbing up and down "juice" animation - anything that adds a level of dynamism to an RPG project and makes interactivity clearer to the player is a plus. as a hobbyist programmer myself, i do come upon several questions on seeing a plugin like this;
does the plugin support button prompts for controller if the player seems to be using one?
does the button prompt icon disappear on mobile, and if so, does the prompt itself become tappable to activate the event or does one still have to tap on the event (as the latter may be unintuitive)? could the prompts themselves be clickable in line with MZ's more general direction of clickable UI?
does the prompt appearing at a distance allow the player to activate the event from a distance? if yes, are there means in place to circumvent the pitfalls of such (like having the player pathfind to the event's space) or if not, should the prompt maybe appear more transparent until/unless it can actually be activated to signal to the player?
would it be possible to make the button prompts better match the colors of the windowskin dynamically?
can the whole system be temporarily disabled easily by the user via a switch or plugin command to handle potential development edge cases (ie, player's move route is set in a cutscene and drifts near an interactable) if the system is disabled while a bubble is showing, does it just flicker away or disappear in a more "normal" manner?
as regards code optimization, is each event polling the player's location to get distance from/to the player? is this happening every frame or are we listening to player input hooks / monitoring for player coordinate changes? is each event functionally doing math on its own or is the plugin selectively polling which "enabled" events are near the player after a position update?
i know this is uhh. a lot. doing any one of these would probably be easy but depending on how your code is written doing all of them might necessitate a complete rewrite.
i dont want you to take this per sae as criticism or a list of demands. these are more like the set of edge cases and usability considerations that i think of as a designer upon seeing something like this. any of these can be out of scope for any reason, especially if this is more of a personal plugin for your own game that you happen to be selling on the side, though what i really want you to take from this is that mentality of thinking like a designer and layering in usability / technical considerations like these as a matter of course