Advertisement
dsiver144

Disable Player Moving

Aug 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #==============================================================================
  2. # Disable Player Moving
  3. # + How to use:
  4. # $game_player.disable_move = true hoặc false.
  5. #==============================================================================
  6. class Game_Player
  7. attr_accessor :disable_move
  8. #--------------------------------------------------------------------------
  9. # * Rewrite Move By Input Method.
  10. #--------------------------------------------------------------------------
  11. alias_method(:sv_disable_move, :move_by_input)
  12. def move_by_input
  13. return if @disable_move
  14. sv_disable_move
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement