Advertisement
LiTTleDRAgo

[RGSS] MMW H-Mode 7 Compatibility Patch

Sep 14th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.68 KB | None | 0 0
  1. #============================================================================
  2. # ** HM7::Surface
  3. # V.1.3 : modifications to handle wall events
  4. #============================================================================
  5. # PLACE MMW and MMW - HM7 PATCH BELOW H-MODE 7 SCRIPT
  6.  
  7. module HM7
  8.   class Surface
  9.     alias drg_mmw_hm7upd update unless method_defined?(:drg_mmw_hm7upd) ||
  10.                                       !method_defined?(:update)
  11.     def update
  12.       drg_mmw_hm7upd
  13.       @character.rev_scr_xy = [screen_x, screen_y]  
  14.     end
  15.      
  16.     def screen_x() (@screen_x1+@screen_x2)/2  end
  17.     def screen_y() (@screen_y1+@screen_y2)/2 + $game_temp.camera_altitude end
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement