#--------------------------------------------------------------------------
# ● 生成箭头★
#--------------------------------------------------------------------------
def createArrow
@actArrSp = Sprite.new
@actArrSp.bitmap = RPG::Cache.windowskin($game_system.windowskin_name)
@actArrSp.ox = 16
@actArrSp.oy = 64
@actArrSp.z = 2500
@arrBlkCount = 0
end
#--------------------------------------------------------------------------
# ● 销毁箭头★
#--------------------------------------------------------------------------
def destroyArrow
@actArrSp.bitmap.dispose
@actArrSp.dispose
@actArrSp = nil
end
#--------------------------------------------------------------------------
# ● 刷新箭头★
#--------------------------------------------------------------------------
def updateArrow
# 刷新点灭记数
@arrBlkCount = (@arrBlkCount + 1) % 8
# 设置传送源矩形
if @arrBlkCount < 4
@actArrSp.src_rect.set(128, 96, 32, 32)
else
@actArrSp.src_rect.set(160, 96, 32, 32)
end
@actArrSp.x = $game_party.actors[@actor_index].screen_x
@actArrSp.y = $game_party.actors[@actor_index].screen_y
end
#--------------------------------------------------------------------------
# ● 生成箭头★
#--------------------------------------------------------------------------
def createArrow
@actArrSp = Sprite.new
@actArrSp.bitmap = RPG::Cache.windowskin($game_system.windowskin_name)
@actArrSp.ox = 16
@actArrSp.oy = 64
@actArrSp.z = 2500
@arrBlkCount = 0
end
#--------------------------------------------------------------------------
# ● 销毁箭头★
#--------------------------------------------------------------------------
def destroyArrow
@actArrSp.bitmap.dispose
@actArrSp.dispose
@actArrSp = nil
end
#--------------------------------------------------------------------------
# ● 刷新箭头★
#--------------------------------------------------------------------------
def updateArrow
# 刷新点灭记数
@arrBlkCount = (@arrBlkCount + 1) % 8
# 设置传送源矩形
if @arrBlkCount < 4
@actArrSp.src_rect.set(128, 96, 32, 32)
else
@actArrSp.src_rect.set(160, 96, 32, 32)
end
@actArrSp.x = $game_party.actors[@actor_index].screen_x
@actArrSp.y = $game_party.actors[@actor_index].screen_y
end