This only works without the SDK(I think), but here goes:
go into the Spriteset_Map class and change this line:
@character_sprites.push(Sprite_Character.new(@viewport1, $game_player))
to
@player_sprite = (Sprite_Character.new(@viewport1, $game_player))
.
now, under the line
add the line
and under the line
add the line
Next, go to line 89, press enter, and insert the code:
if @player_sprite.zoom_x != $game_variables[x]
@player_sprite.zoom_x = $game_variables[x].to_f / 100
end
if @player_sprite.zoom_y != $game_variables[y]
@player_sprite.zoom_y = $game_variables[y].to_f / 100
end
if $game_variables[x] == 0
@player_sprite.zoom_x = 1.0
end
if $game_variables[y] == 0
@player_sprite.zoom_y = 1.0
end
And there you have it!
P.S. to change the variables used in zoom, go to the lines
if @player_sprite.zoom_x != $game_variables[x]
if @player_sprite.zoom_y != $game_variables[y]
if $game_variables[x] == 0
if $game_variables[y] == 0
and change x and y to the variables for the X Zoom and Y Zoom.
100 is normel, 50 is half, and 200 is double. I've also made it so that a zoom of 0 equals 100. Hope that helps!