So it happens with keyboard
or gamepad input, even with no plugins enabled? If so, that's very important information~
As stated earlier, plugins are responsible for handling their own input, so it may also be a problem with Olivia's Octobattle plugin. Since that plugin is paid, though (and probably obfuscated) you're unlikely to find anyone to help with it, other than its author.
Like others have mentioned, the problem sounds like core behaviour:
isRepeated is false until the button is long-pressed (24 frames), then is true every "repeat interval" (6 frames) after that. MZ implements a
_canRepeat flag on selectable windows to control stuff like this, toggling between
isRepeated and
isTriggered for relevant checks, but MV doesn't. Your game appears to be running at 60 fps according to the F2 widget, so 24 frames should last 24/60 = 0.4 seconds. It's possible you are holding the button slightly longer than that, per press.
Did you try the code
@utunnels provided in earlier posts (
#14,
#16) to change the repeat times? I.e. as a plugin:
JavaScript:
// A button is long-pressed after being held for 10000 frames.
Input.keyRepeatWait = 10000; // default 24
// The button repeat check will be true every 60 frames after that.
Input.keyRepeatInterval = 60; // default 6
As before, test first in a new project, else other plugins may interfere. Alternatively:
JavaScript:
// Override!
Input.isRepeated = function() {
this.isTriggered.apply(this, arguments);
};
This basically makes all
isRepeated checks act as
isTriggered: true iff the button was not pressed on the previous frame, but is pressed right now. Either solution will be sub-optimal in various cases, but if they solve your primary problem of "zooming through menus etc" then that's a promising start!
You could also try typing this into the console window, then press Enter:
process.versions.nw
This reports the version of NWJS (runtime app) your game is running on. E.g. I see this:
View attachment 315018
If you're using a different version, e.g. because you manually upgraded it at some point, that may be noteworthy.
If you have, at any point, modified your project's core scripts (or, worse, the core scripts in your RMMV install folder, under NewData) you could restore them to defaults (e.g. by reinstalling your editor, or using Steam's "verify file integrity" feature) then make a new project and retry the tests in that clean project.
At the end of the day, it's not feasible for us to suggest a fix if we can't understand or even replicate the problem on our end.
That logic would actually be simpler: you'd only need a switch to track whether the button was pressed last frame. Or you could use Branch -> Script:
Input.isTriggered("ok") instead. You may find this thread helpful:
It's pretty much what's said in the title, something like beam struggle in dragon ball games, is that possible?
forums.rpgmakerweb.com
Also, your question is clearly not the same as the OP of this thread, so if you want further help with your question, please start a new thread of your own rather than hijacking this one.
👋