Project1
标题:
怎么在标题添加天气
[打印本页]
作者:
funxlww
时间:
2017-8-6 21:35
标题:
怎么在标题添加天气
我想在标题添加下雨的天气效果,不想用事件标题,有没有办法?
作者:
喵呜喵5
时间:
2017-8-6 21:48
本帖最后由 喵呜喵5 于 2021-3-3 00:47 编辑
module M520170806W
class W < ::Spriteset_Weather
def initialize
@m5_20170806_viewport = Viewport.new
@m5_20170806_viewport.z = 100
super(@m5_20170806_viewport)
self.power = 5
update
end
def init_members
super
@type = :rain
@ox = Graphics.width/2
@oy = Graphics.height/2
end
def dispose
super
@m5_20170806_viewport.dispose
end
def dimness; 0; end
end
end
class Scene_Title
alias m5_20170806_create_foreground create_foreground
def create_foreground
m5_20170806_create_foreground
@m5_20170806_weather = M520170806W::W.new
end
alias m5_20170806_update update
def update
m5_20170806_update
@m5_20170806_weather.update
end
alias m5_20170806_dispose_foreground dispose_foreground
def dispose_foreground
@m5_20170806_weather.dispose
m5_20170806_dispose_foreground
end
end
复制代码
作者:
funxlww
时间:
2017-8-6 21:57
喵呜喵5 发表于 2017-8-6 21:48
我用原版的也是只有下半部分有雨
QQ截图20170806215800.png
(280 KB, 下载次数: 18)
下载附件
保存到相册
2017-8-6 21:56 上传
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1