Custom Movement Set-Up -- Event Issue

Hey there,
I'd like my game to have instantaneous tile movement -- you can see what I mean here:

4RI19uD.gif


In order to achieve that specific look, I disable player movement when the game launches and have set up a copy of this event set to parallel run on every map:

D7NSfTp.png


With the common event source being this:

BifPQeH.png


Unfortunately, there are two major issues with this approach. First (and most importantly) the players has trouble interacting with events as pressing "Enter"/"OK" next to one sometimes just doesn't do anything. When I want to interact with an event, I'm forced to spam-press "Enter"/"OK" until the event finally triggers.

I suspect that this is due to the loop, but unfortunately removing it breaks the movement effect. I've tried using label jumping instead of a loop, but the issue persisted (though it did happen less frequently), and the movement effect wasn't quite the same:

tlKfg9g.png


iwVZyed.gif


The other problem I'm running into is that I can't stop the player from moving while message boxes or choices are showing:

Bnkpjab.gif


This is obviously because the parallel event I'm running isn't set up to pause during these sequences. I've tried coming up with a workaround, but everything I tried either broke the movement effect or requires work to be done on every single message/choice event in the game.
I strongly suggest you make a request for a plugin that introduces such a movement effect into the code itself, and then get rid of the entire common event. Such a plugin should not require much, so it should be possible with a free request and a few weeks of waiting until someone has time for programming it.

That is because there are several problems with your approach - beyond what you found for yourself. The bigger your game gets, the more timing problems will result. And that doesn't even include the fact that you made double loops (an parallel automatically loops, and placing a loop command inside a parallel should only be done if you know exactly what you're doing).
Additionally, for the future it would be much better to not cut away important parts of the event data - the content area is only half of the event window for very good reasons, the event properties are as important as the content and very often a wrong property there is the cause of problems.
I just wrote a little plugin that solves this, I think: view/download file (Google Drive)
Spoiler: Full code
Code:
//=========================================================
// Cae_InstantMove.js
//=========================================================

/*:
 * @plugindesc v1.0 - No move lerping: map sprites move instantly from tile to tile.
 * @author Caethyril
 *
 * @help Plugin Commands:
 *   None.
 *
 * Compatibility:
 *   Overrides:
 *     Game_CharacterBase:
 *       distancePerFrame
 *   Aliases:
 *     Game_CharacterBase:
 *       updateMove, isMoving
 *   Defines new property on Game_CharacterBase to track inter-move delay time.
 *   The name of this property can be customised via a plugin parameter.
 *
 * Terms of use:
 *   Free to use and modify.
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 * Update log:
 *   1.0: Initial release.
 *
 * @param Normal Speed Wait
 * @text Normal Speed Wait
 * @type number
 * @min 0
 * @desc Wait between moves for characters with move speed 4.
 * Default: 30 frames (halves/doubles with -/+ 1 speed).
 * @default 30
 *
 * @param Normal Frequency Wait
 * @text Normal Frequency Wait
 * @type number
 * @min 0
 * @desc Wait between moves for characters with move frequency 3.
 * Default: 30 frames (linear to zero at frequency 5).
 * @default 30
 *
 * @param Property Name: Move Wait
 * @text Property Name: Move Wait
 * @type text 
 * @desc Name of the property used to track wait time between moves.
 * Default: _moveWait
 * @default _moveWait
 */

var Imported = Imported || {};			// Import namespace
Imported.Cae_InstantMove = 1.0;			// Import declaration

var CAE = CAE || {};				// Author namespace
CAE.InstantMove = CAE.InstantMove || {};	// Plugin namespace

(function(_) {

'use strict';

	const PLUGIN_NAME  = 'Cae_InstantMove';
	const ERR_PRE      = PLUGIN_NAME + '.js ';
	const ERR_NOPARAMS = ERR_PRE + 'could not find its parameters!\nCheck you have named the plugin file correctly and try again.';
	const WARN_WATPROP = ERR_PRE + 'could not use specified property name \'%1\'.\nReverting to default: \'%2\'.';

// ========== Parameter stuff ========== //

	_.params = PluginManager.parameters(PLUGIN_NAME);
	if (_.params === undefined) throw new Error(ERR_NOPARAMS);

	_.normalSpeedWait = Math.max(0, Number(_.params['Normal Speed Wait'] || 30));
	_.normalFreqWait = Number(_.params['Normal Frequency Wait'] || 30);

	const P_LERPWAIT = (function(prop) {
		if (prop === undefined || prop.trim() === '') {
			let dFault = '_moveFrame';
			console.warn(WARN_WATPROP.format(prop, dFault))
			return dFault;
		}
		return prop;
	})(_.params['Property Name: Move Wait']);

// ============== Utility ============== //

	// New functions for modularity/ease of editing.
	_.getFrameWaitSpeed = function(speed) { return _.normalSpeedWait / Math.pow(2, speed - 4); };
	_.getFrameWaitFreq = function(frequency) { return Math.max(0, (5 - frequency) * _.normalFreqWait / 2); };

	// Wait property helper methods/functions~
	_.isWaiting = function(char) { return char[P_LERPWAIT] > 0; };
	_.updateWait = function(char) { char[P_LERPWAIT]--; };
	_.setWait = function(char, value) { char[P_LERPWAIT] = value; };

	// New function: returns wait time in frames between instant moves, based on input move speed and frequency.
	_.calcFrameWait = function(speed, frequency) {
		return Math.ceil(_.getFrameWaitSpeed(speed) + _.getFrameWaitFreq(frequency)) - 1;
	};

// ============== Extends ============== //

	// New property to track wait time between lerpless moves
	Object.defineProperty(Game_CharacterBase, P_LERPWAIT, {
		get: function( ) {
			if (this[P_LERPWAIT] === undefined) this[P_LERPWAIT] = 0;
			return this[P_LERPWAIT];
		},
		set: function(v) {
			this[P_LERPWAIT] = v;
		},
		configurable: true
	});

// ============ Alterations ============ //

	// Also update wait counter
	_.Game_CharacterBase_updateMove = Game_CharacterBase.prototype.updateMove;
	Game_CharacterBase.prototype.updateMove = function() {
		_.Game_CharacterBase_updateMove.call(this);
		_.updateWait(this);
	};

	// Prevent gratuitous zoomies
	_.Game_CharacterBase_isMoving = Game_CharacterBase.prototype.isMoving;
	Game_CharacterBase.prototype.isMoving = function() {
		if (_.Game_CharacterBase_isMoving.call(this)) {
			_.setWait(this, _.calcFrameWait(this.realMoveSpeed(), this.moveFrequency()));
		}
		return _.isWaiting(this);	// Keep "moving" until wait time expires
	};

// ============= Overrides ============= //

	Game_CharacterBase.prototype.distancePerFrame = function() { return Infinity; }; // and beyond!

})(CAE.InstantMove);
The bigger your game gets, the more timing problems will result.

I figured I could avoid this because the game doesn't rely all that many complicated event set-ups, but noted.

(an parallel automatically loops, and placing a loop command inside a parallel should only be done if you know exactly what you're doing).

Huh. Good to know!

I just wrote a little plugin that solves this, I think: view/download file (Google Drive)

That works fantastically well, thank you very much!
I figured I could avoid this because the game doesn't rely all that many complicated event set-ups, but noted.
There is a chance that you missed my true point here based on your answer.

By itself, the engine has absolutely no timing problems.
Timing problems are created by the wrong use of parallel process and autorun triggers.
And the way you did that event would have created more timing errors even with adding simple events - like you experienced by not being able to trigger simple events without key-spamming.
So even if you don't have any more complivated events, even simplest events would increase the number of errors caused by that form of looping and control.

That is why I said you would need a plugin - and you got lucky by someone having free time for it earlier than I guestimated.

Original thread: https://forums.rpgmakerweb.com/threads/custom-movement-set-up-event-issue.108405/