I had ask about this
https://forums.rpgmakerweb.com/inde...se-only-left-and-right-walk-animation.105648/
and @caethyril kindly help me to make this script
basically everything work fine
untill I notice some odd about door and switch sprite
it's only use R/L by this script so that the problem with vertical animation sheet
the affect only player is not an option because I do action map battle game
the enemy[event] need to use only R/L same as player
thank you
https://forums.rpgmakerweb.com/inde...se-only-left-and-right-walk-animation.105648/
and @caethyril kindly help me to make this script
Code:
/*:
* @plugindesc Ignores attempts to make characters face up or down.
* @author Caethyril
* @help Free to use and modify.
*/
(function() {
'use strict';
let _Game_CharacterBase_setDirection = Game_CharacterBase.prototype.setDirection;
Game_CharacterBase.prototype.setDirection = function(d) {
if (![2,8].contains(d)) _Game_CharacterBase_setDirection.call(this, d);
};
})();
// To affect only the player, replace all 4 "Game_CharacterBase" with "Game_Player"
basically everything work fine
untill I notice some odd about door and switch sprite
it's only use R/L by this script so that the problem with vertical animation sheet
the affect only player is not an option because I do action map battle game
the enemy[event] need to use only R/L same as player
thank you