Vendily

PokemonParty_Scene additions

Jan 22nd, 2019
152
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   def pbAnimForme(anim,partynum,form=0,nform=-1)
  2.     @sprites["formeanim"]=GifAnim.new(0,0,@viewport2)
  3.     @sprites["formeanim"].z=999999
  4.     @sprites["formeanim"].x=@sprites["pokemon#{partynum}"].x+50
  5.     @sprites["formeanim"].y=@sprites["pokemon#{partynum}"].y+20
  6.     if form!=0
  7.       @sprites["formeanim"].setBitmap("Graphics/Pictures/Party/animform#{anim}_#{form}")
  8.     else
  9.       @sprites["formeanim"].setBitmap("Graphics/Pictures/Party/animform#{anim}")
  10.     end
  11.  
  12.     changed=false if nform!=-1
  13.    
  14.     loop do
  15.       Graphics.update
  16.       Input.update
  17.       pbUpdateSceneMap
  18.       update
  19.    
  20.       if nform!=-1 && !changed
  21.         if @sprites["formeanim"].middle?
  22.           @party[partynum].form=nform if nform!=-1
  23.           pbRefresh if nform!=-1
  24.           changed=true
  25.         end
  26.       end
  27.  
  28.       @sprites["formeanim"].dispose if @sprites["formeanim"].finished?
  29.       break if @sprites["formeanim"].disposed?
  30.     end
  31.   end
  32.  
  33.   def pbAnimFormeFusion(anim,partynum,anim2,partynum2,nform=-1,nform2=-1)
  34.     @sprites["formeanim"]=GifAnim.new(0,0,@viewport2)
  35.     @sprites["formeanim"].z=999999
  36.     @sprites["formeanim"].x=@sprites["pokemon#{partynum}"].x+50
  37.     @sprites["formeanim"].y=@sprites["pokemon#{partynum}"].y+20
  38.     @sprites["formeanim"].setBitmap("Graphics/Pictures/Party/animform#{anim}")
  39.    
  40.     @sprites["formeanim2"]=GifAnim.new(0,0,@viewport2)
  41.     @sprites["formeanim2"].z=999999
  42.     @sprites["formeanim2"].x=@sprites["pokemon#{partynum2}"].x+50
  43.     @sprites["formeanim2"].y=@sprites["pokemon#{partynum2}"].y+20
  44.     @sprites["formeanim2"].setBitmap("Graphics/Pictures/Party/animform#{anim2}")
  45.      
  46.     changed=false if nform!=-1
  47.     changed2=false if nform2!=-1
  48.  
  49.     loop do
  50.       Graphics.update
  51.       Input.update
  52.       pbUpdateSceneMap
  53.       update
  54.    
  55.       if nform!=-1 && !changed
  56.         if @sprites["formeanim"].middle?
  57.           @party[partynum].form=nform if nform!=-1
  58.           pbRefresh if nform!=-1
  59.           changed=true
  60.         end
  61.       end
  62.      
  63.       @sprites["formeanim"].dispose if @sprites["formeanim"].finished?
  64.       @sprites["formeanim2"].dispose if @sprites["formeanim2"].finished?
  65.       break if @sprites["formeanim"].disposed? && @sprites["formeanim2"].disposed?
  66.     end
  67.   end
RAW Paste Data