Advertisement
LiTTleDRAgo

[RGSS/2/3] DRG - Flip Character

Jan 30th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.20 KB | None | 0 0
  1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  2. # [Xp/Vx/Vx-A] DRG - Flip Character
  3. # Version: 1.00
  4. # Author : LiTTleDRAgo
  5. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  6. #
  7. # How to use
  8. #
  9. # Type in the script call
  10. #
  11. #     $game_map.events[1].flip = true/false
  12. #
  13. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  14. #==============================================================================
  15. # ** Sprite_Character
  16. #------------------------------------------------------------------------------
  17. #  This sprite is used to display the character.It observes the Game_Character
  18. #  class and automatically changes sprite conditions.
  19. #==============================================================================
  20. class Sprite_Character
  21.   #--------------------------------------------------------------------------
  22.   # * Frame Update
  23.   #--------------------------------------------------------------------------
  24.   alias flip_update update unless $@
  25.   def update()
  26.     flip_update
  27.     self.mirror = @character.flip
  28.   end
  29. end
  30.  
  31. eval("class Game_Character; attr_accessor :flip end")
  32. $drago_flip_character = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement