Guest User

STV_LookOnlyLeftRight

a guest
Nov 4th, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // STV_LookOnlyLeftRight.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc v1.0 - STV_LookOnlyLeftRight
  7.  * || This plugin will change reduce the possible look directions
  8.  * to Left and Right.
  9.  * @author SkottyTV
  10.  *
  11.  * @help
  12.  *
  13.  * ////////////////////////////////////////////////////////////////////////////
  14.  * ----------------------------- Terms of Usage: ------------------------------
  15.  * ////////////////////////////////////////////////////////////////////////////
  16.  
  17.  * Feel free to use this Plugin in 1. Non-Commercial Games, 2. Commercial Games
  18.  * However it would be nice to give proper Credits to "SkottyTV"
  19.  * Also a free copy of your Game would be a nice move :)
  20.  *
  21.  * Have Fun And Enjoy! :)
  22.  *
  23.  *
  24.  *
  25.  * ////////////////////////////////////////////////////////////////////////////
  26.  * --------------------------------- Updates:----------------------------------
  27.  * ////////////////////////////////////////////////////////////////////////////
  28.  *
  29.  * Update v1.0
  30.  * - Basic Functionality
  31.  *
  32.  *
  33.  */
  34.  
  35.  
  36. // ----------------------------------------------------------------------------------------------------------------------------
  37. // Movement
  38. // ----------------------------------------------------------------------------------------------------------------------------
  39.     Game_CharacterBase.prototype.setDirection = function(d) {
  40.         if (!this.isDirectionFixed() && d) {
  41.             if (d == 2 || d == 8) d = this._direction;
  42.             this._direction = d;
  43.         }
  44.         this.resetStopCount();
  45.     };
RAW Paste Data