TheoAllen

Theo - Battleback Autoresize

May 14th, 2013
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.61 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Battleback Autoresize
  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_ResizeBG] = true
  8. # =============================================================================
  9. # CHANGE LOGS:
  10. # -----------------------------------------------------------------------------
  11. # 2013.05.15 - Started and Finished script
  12. # =============================================================================
  13. =begin
  14.  
  15.   Perkenalan :
  16.   Script ini cuman bikin battleback bisa nyesuain ama lebar layar kalo semisal
  17.   u make script yang ngubah layar RM
  18.  
  19.   Cara penggunaan :
  20.   Pasang diatas main tapi dibawah material
  21.  
  22.   Terms of use :
  23.   No special condition. No credit needed
  24.  
  25. =end
  26. # =============================================================================
  27. # Tidak ada konfigurasi
  28. # =============================================================================
  29. class Spriteset_Battle
  30.  
  31.   alias pre_resize_battleback1 create_battleback1
  32.   alias pre_resize_battleback2 create_battleback2
  33.  
  34.   def create_battleback1
  35.     pre_resize_battleback1
  36.     @back1_sprite.zoom_x = Graphics.width / 544.0
  37.     @back1_sprite.zoom_y = Graphics.height / 416.0
  38.   end
  39.  
  40.   def create_battleback2
  41.     pre_resize_battleback2
  42.     @back2_sprite.zoom_x = Graphics.width / 544.0
  43.     @back2_sprite.zoom_y = Graphics.height / 416.0
  44.   end
  45.  
  46. end
Advertisement
Add Comment
Please, Sign In to add comment