1、设计了一些战斗中使用的物品,本身并没有什么作用,效果都是通过公共事件实现的。但是每次执行完公共事件,效果是达到了,但对象头上都要冒个Miss,这着实让我郁闷,不知该怎么去掉?
# 状态没有变化的情况下
unless (@state_changed || skill.common_event_id > 0)
# 伤害设置为 "Miss"
self.damage = "Miss"
end
2、想在进入标题画面前连续显示两张图片,自动的。主站也有类似脚本,但需要按确定键才能进入标题画面。所以,在此向各位高手求助!
Graphics.freeze
logo = Sprite.new
# 第一张
logo.bitmap = Bitmap.new('Graphics\Pictures\66rpg')
# 居中显示
logo.ox = logo.bitmap.width / 2
logo.oy = logo.bitmap.height / 2
logo.x = 320
logo.y = 240
Graphics.transition(20) # 20帧渐变
# 等待时间,40帧约等于一秒
for i in 0...40
Graphics.update
end
# 消失
Graphics.freeze
logo.visible = false
Graphics.transition(20) # 20帧渐变
Graphics.freeze
# 切换到第二张
logo.bitmap = Bitmap.new('Graphics\Pictures\RatingRP')
logo.ox = logo.bitmap.width / 2
logo.oy = logo.bitmap.height / 2
logo.visible = true
Graphics.transition(20) # 20帧渐变
# 等待时间,40帧约等于一秒
for i in 0...40
Graphics.update
end
# 显示完毕
Graphics.freeze
logo.visible = false
logo.dispose
Graphics.transition(20) # 20帧渐变
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |