IceDragon200

QuickZoom

Sep 13th, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.49 KB | None | 0 0
  1. class Game_Character
  2.  
  3.   attr_accessor :zoom_x, :zoom_y
  4.  
  5.   alias :izoom_initialize :initialize unless $@
  6.   def initialize( *args, &block )
  7.     izoom_initialize( *args, &block )
  8.     @zoom_x, @zoom_y = 1.0, 1.0
  9.   end
  10.  
  11. end
  12.  
  13. class Sprite_Character
  14.  
  15.   alias :izoom_update :update unless $@
  16.   def update( *args, &block )
  17.     izoom_update( *args, &block )
  18.     unless @character.nil?()
  19.       self.zoom_x = @character.zoom_x
  20.       self.zoom_y = @character.zoom_y
  21.     end
  22.   end
  23.  
  24. end
Advertisement
Add Comment
Please, Sign In to add comment