TheoAllen

Theo - Character Flip

Nov 15th, 2013
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.71 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Character Flip
  3. # Version : 1.0
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (This script documentation is written in informal indonesian language)
  6. # =============================================================================
  7. ($imported ||= {})[:Theo_CharFlip] = true
  8. # =============================================================================
  9. # Change Logs:
  10. # -----------------------------------------------------------------------------
  11. # 2013.11.15 - Finished script
  12. # =============================================================================
  13. =begin
  14.  
  15.   Perkenalan :
  16.   Script ini membuat kamu dapat nge-flip karakter di peta
  17.  
  18.   Cara penggunaan :
  19.   Pasang dibawah material namun diatas main
  20.   Untuk ngeflip karakter, gunakan :
  21.   set move route --> script --> self.mirror = true
  22.  
  23.   Terms of use :
  24.   Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
  25.   keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
  26.   dipake buat komersil, jangan lupa, gw dibagi gratisannya.  
  27.  
  28. =end
  29. # =============================================================================
  30. # Tidak ada konfig
  31. # =============================================================================
  32. class Game_CharacterBase
  33.   attr_accessor :mirror
  34.  
  35.   alias theo_charflip_init initialize
  36.   def initialize
  37.     theo_charflip_init
  38.     @mirror = false
  39.   end
  40.  
  41. end
  42.  
  43. class Sprite_Character < Sprite_Base
  44.  
  45.   alias theo_charflip_update update
  46.   def update
  47.     theo_charflip_update
  48.     update_mirror
  49.   end
  50.  
  51.   def update_mirror
  52.     self.mirror = @character.mirror
  53.   end
  54.  
  55. end
Advertisement
Add Comment
Please, Sign In to add comment