Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- Made by: Sixth
- Fixes the zoom issues with Falcao's ABS (for custom graphics).
- Place this below ALL of the ABS scripts (including any addons)!
- =end
- class Sprite_Character < Sprite_Base
- # fix custom graphic zoom - part 1
- alias check_bush7726 update_anime_object_pos
- def update_anime_object_pos
- check_bush7726
- if @character.is_a?(Anime_Obj)
- self.zoom_x = @character.user.zoomfx_x
- self.zoom_y = @character.user.zoomfx_y
- self.angle = @character.user.angle_fx
- self.opacity = @character.user.opacity
- self.blend_type = @character.user.blend_type
- end
- end
- end
- class Projectile < Game_Character
- # fix custom graphic zoom - part 2
- alias zoom_size_dist6625 load_item_data
- def load_item_data
- @zoomfx_x = @user.zoomfx_x
- @zoomfx_y = @user.zoomfx_y
- zoom_size_dist6625
- if @tool_size.is_a?(Array)
- @tool_size[0] = @tool_size * @user.zoomfx_x
- @tool_size[1] = @tool_size * @user.zoomfx_y
- @tool_size[0] = 1 if @tool_size[0] < 1
- @tool_size[1] = 1 if @tool_size[1] < 1
- else
- @tool_size = @tool_size * ((@user.zoomfx_x+@user.zoomfx_y)/2)
- @tool_size = 1 if @tool_size < 1
- end
- @tool_distance = @tool_distance * @user.zoomfx_y
- @tool_distance = 1 if @tool_distance < 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement