Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # Disable Player Moving
- # + How to use:
- # $game_player.disable_move = true hoặc false.
- #==============================================================================
- class Game_Player
- attr_accessor :disable_move
- #--------------------------------------------------------------------------
- # * Rewrite Move By Input Method.
- #--------------------------------------------------------------------------
- alias_method(:sv_disable_move, :move_by_input)
- def move_by_input
- return if @disable_move
- sv_disable_move
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement