#==============================================================================
# 新·得失物品 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
@sunnyboy_getitem_text = Sprite.new
@sunnyboy_getitem_text.opacity = 0
@sunnyboy_getitem_text.x = @sunnyboy_getitem_back.x
@sunnyboy_getitem_text.y = @sunnyboy_getitem_back.y
@sunnyboy_getitem_text.z = 9999
@sunnyboy_getitem_text.bitmap = Bitmap.new(249, 49)
@sunnyboy_getitem_text.bitmap.font.size = 16
return @sunnyboy_getitem_text.bitmap
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
@sunnyboy_getitem_text = nil
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
@sunnyboy_getitem_back = nil
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
@sunnyboy_getitem_block = nil
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |