SHARE
TWEET

Mog Krosk Pic FX Compatibility

Black_Mage Apr 28th, 2020 (edited) 615 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Game_Temp
  2.   attr_accessor :p_anim_fr_lim
  3.   alias b_fr_lim_init initialize
  4.   def initialize
  5.     @p_anim_fr_lim = true; b_fr_lim_init
  6.   end  
  7. end
  8. class Sprite_Picture < Sprite  
  9.   def create_picture_animation
  10.     dispose_pic_frames ; @pic_frames = [] ; @picture.anime_frames[0] = false    
  11.     for index in 0...($game_temp.p_anim_fr_lim.to_i - 1)
  12.       @pic_frames.push(Cache.picture(@picture.name + index.to_s)) rescue nil
  13.       break if @pic_frames[index] == nil
  14.     end
  15.     if @pic_frames.size <= 1
  16.       dispose_pic_frames ; @pic_frames = nil ; @picture.anime_frames.clear
  17.       @picture.effect_ex[7] = nil ; return
  18.     end
  19.     self.bitmap = @pic_frames[@picture.anime_frames[3]]
  20.     update_picture_animation
  21.   end
  22. end
  23. class Game_Interpreter
  24.   def picture_effect_7(a,b,c,d,e)
  25.     $game_temp.p_anim_fr_lim = e
  26.     picture_effect(a,b,c,d)
  27.   end
  28. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top