Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Character
- attr_accessor :zoom_x, :zoom_y
- alias :izoom_initialize :initialize unless $@
- def initialize( *args, &block )
- izoom_initialize( *args, &block )
- @zoom_x, @zoom_y = 1.0, 1.0
- end
- end
- class Sprite_Character
- alias :izoom_update :update unless $@
- def update( *args, &block )
- izoom_update( *args, &block )
- unless @character.nil?()
- self.zoom_x = @character.zoom_x
- self.zoom_y = @character.zoom_y
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment