View Single Post
 
How?
Reply
Posted 2009-07-17, 06:38 PM in reply to Goodlookinguy's post "RPG Maker VX 1.01 added Script"
Goodlookinguy said: [Goto]
If you were working on a game and updated the RPG Maker VX, they added a script to it. Without it, your games will not play. So here is the script.

Code:
#==============================================================================
# ■ VX_SP1
#------------------------------------------------------------------------------
#  プリセットスクリプトの不具合を修正します。
#==============================================================================

#------------------------------------------------------------------------------
# 【SP1 修正内容】
#------------------------------------------------------------------------------
# ■アニメーションにて、番号の大きいセルが番号の小さいセルより画面の上にあると
#   き(Y座標が小さいとき)、セルの表示の優先順位が仕様通りにならなくなる不具
#   合を修正しました。
# ■アニメーションの反転表示時、Y座標の計算方法が誤っている不具合を修正しまし
#   た。
# ■同じアニメーションを連続して表示する際、必要なグラフィックを誤って解放して
#   しまう場合がある不具合を修正しました。
#------------------------------------------------------------------------------

class Sprite_Base < Sprite
  #--------------------------------------------------------------------------
  # ● アニメーションの解放
  #--------------------------------------------------------------------------
  alias eb_sp1_dispose_animation dispose_animation
  def dispose_animation
    eb_sp1_dispose_animation
    @animation_bitmap1 = nil
    @animation_bitmap2 = nil
  end
  #--------------------------------------------------------------------------
  # ● アニメーションスプライトの設定
  #     frame : フレームデータ (RPG::Animation::Frame)
  #--------------------------------------------------------------------------
  alias eb_sp1_animation_set_sprites animation_set_sprites
  def animation_set_sprites(frame)
    eb_sp1_animation_set_sprites(frame)
    cell_data = frame.cell_data
    for i in 0..15
      sprite = @animation_sprites[i]
      next if sprite == nil
      pattern = cell_data[i, 0]
      next if pattern == nil or pattern == -1
      if @animation_mirror
        sprite.y = @animation_oy + cell_data[i, 2]
      end
      sprite.z = self.z + 300 + i
    end
  end
end
How/where in the script do you put this?
Old
Profile PM WWW Search
Anewtime is neither ape nor machine; has so far settled for the in-betweenAnewtime is neither ape nor machine; has so far settled for the in-between
 
Anewtime