#==============================================================================
# 新·得失物品 By Sunny Boy
#==============================================================================
class Interpreter
def sunnyboy_getitem_ani_1
@sunnyboy_getitem_block = Sprite.new
@sunnyboy_getitem_block.bitmap = RPG::Cache.picture($SUNNYBOY_GETITEM_小块图片)
@sunnyboy_getitem_block.x = 640
@sunnyboy_getitem_block.y = 320
@sunnyboy_getitem_block.z = 9998
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_block.x > 619 then
for i in 1...5
@sunnyboy_getitem_block.x -= 1 if @sunnyboy_getitem_block.x > 619
end
else
break
end
end
@sunnyboy_getitem_back = Sprite.new
@sunnyboy_getitem_back.bitmap = RPG::Cache.picture($SUNNYBOY_GETITEM_背景图片)
@sunnyboy_getitem_back.x = 619
@sunnyboy_getitem_back.y = 320
@sunnyboy_getitem_back.z = 9997
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_back.x > 370 then
for i in 1...10
@sunnyboy_getitem_back.x -= 1 if @sunnyboy_getitem_back.x > 370
end
else
break
end
end
def sunnyboy_getitem_ani_2
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_text.opacity != 255 then
@sunnyboy_getitem_text.opacity += 10
else
break
end
end
frame_count = 0
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
frame_count += 1
break if frame_count == 40
end
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_text.opacity != 0 then
@sunnyboy_getitem_text.opacity -= 10
else
break
end
end
@sunnyboy_getitem_text.dispose
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_back.x != 619 then
for i in 1...10
@sunnyboy_getitem_back.x += 1 if @sunnyboy_getitem_back.x != 619
end
else
break
end
end
@sunnyboy_getitem_back.dispose
loop do
# 刷新游戏画面
Graphics.update
# 刷新输入信息
Input.update
if @sunnyboy_getitem_block.x != 640 then
for i in 1...5
@sunnyboy_getitem_block.x += 1 if @sunnyboy_getitem_block.x != 640
end
else
break
end
end
@sunnyboy_getitem_block.dispose
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================作者: 銀藍色的零 时间: 2009-12-20 22:45
不知道為什麼
我測時是可以記錄的
可能是我看不懂這套腳本到底是有什麼功用吧
你能不能po工程上來~