Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ==============================================================================
- # ▼▼▼▼▼▼ TroyZ - Inverted Movements ▼▼▼▼▼▼
- # ==============================================================================
- # Script by : Agung Prasetyo(TroyZ)
- # Contact me by : - Email agung.endisnear.xyz@gmail.com
- # - Handphone 082324317485
- # Engine : VXAce
- # Level : Easy
- # Version : 1.0
- # ------------------------------------------------------------------------------
- # Change Logs :
- # 23 December 2018 : Version 1.0 released
- # ------------------------------------------------------------------------------
- # How this work :
- # This script allows you to reverse the movements input of players on the map.
- # The function can be altered by using switch.
- # ------------------------------------------------------------------------------
- # How to use :
- # Place it between material and main. Edit the switch used inside the script
- # module. Turn on the said switch to reverse the movements input, turn it off to
- # revert to default movements input.
- # ------------------------------------------------------------------------------
- # Compatibility issues :
- # None yet. If you found some, let me know, and bug fixes will come out soon.
- # ------------------------------------------------------------------------------
- # Who to credit :
- # - Allah swt. : For the chance of living that he has given to me.
- # - Nabi Muhammad saw. : As a leader and messenger and prophet of Muslim.
- # I'm proud to be your follower. :)
- # - Agung Prasetyo(TroyZ) : Thats me, of course, the ones that made this script. :P
- # ------------------------------------------------------------------------------
- # License :
- # - Free Game : Just credit those names above.
- # - Commercial Game : Same as free game's license.
- # ------------------------------------------------------------------------------
- $imported = {} if $imported.nil?
- $imported[:TroyZ_MapBattleback] = true
- # ------------------------------------------------------------------------------
- # Configuration of script starts here
- # ------------------------------------------------------------------------------
- module AGUNG
- module REV_MOVE
- REV_MOVE_SWITCH = 200 # Turn on this switch to use reversed movements input.
- end
- end
- # ------------------------------------------------------------------------------
- # End of Configuration
- # ------------------------------------------------------------------------------
- # ------------------------------------------------------------------------------
- # You shall not pass
- # ------------------------------------------------------------------------------
- class Game_Player < Game_Character
- include AGUNG::REV_MOVE
- def move_by_input
- return if !movable? || $game_map.interpreter.running?
- if $game_switches[REV_MOVE_SWITCH]
- move_straight(10 - Input.dir4) if Input.dir4 > 0
- else
- move_straight(Input.dir4) if Input.dir4 > 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement