本帖最后由 NOLO 于 2013-7-15 12:09 编辑
unless $BTEST @sprite = [] for i in 1..2 @sprite[i] = Sprite.new @sprite[i].opacity = 0 end @sprite[1].bitmap = Bitmap.new("Graphics/system/N") @sprite[2].bitmap = Bitmap.new("Graphics/system/66rpg") @sprite[2].x = 125 @sprite[2].y = 145 for i in 0..50 @sprite[1].opacity += 5 Graphics.update end for i in 0..60 Graphics.update end for i in 0..50 @sprite[1].opacity -= 5 Graphics.update end for i in 0..40 @sprite[2].opacity += 6 Graphics.update end for i in 0..50 Graphics.update end for i in 0..40 @sprite[2].opacity -= 6 Graphics.update end for i in 1..2 @sprite[i].bitmap.dispose @sprite[i].dispose end end
unless $BTEST
@sprite = []
for i in 1..2
@sprite[i] = Sprite.new
@sprite[i].opacity = 0
end
@sprite[1].bitmap = Bitmap.new("Graphics/system/N")
@sprite[2].bitmap = Bitmap.new("Graphics/system/66rpg")
@sprite[2].x = 125
@sprite[2].y = 145
for i in 0..50
@sprite[1].opacity += 5
Graphics.update
end
for i in 0..60
Graphics.update
end
for i in 0..50
@sprite[1].opacity -= 5
Graphics.update
end
for i in 0..40
@sprite[2].opacity += 6
Graphics.update
end
for i in 0..50
Graphics.update
end
for i in 0..40
@sprite[2].opacity -= 6
Graphics.update
end
for i in 1..2
@sprite[i].bitmap.dispose
@sprite[i].dispose
end
end
插入第一张图片名字叫:N,插入第二张图片名字叫:66rpg,到Syetem |