查看: 2140|回复: 2

[已经解决] 关于天气设置

[复制链接]

双子人

梦石
0
星屑
3205
在线时间
3619 小时
注册时间
2009-4-4
回帖
3901

开拓者

发表于 2012-4-18 18:18:07 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 hys111111 于 2012-4-18 18:28 编辑
  1.   def weather(type, power, duration)
  2.     @weather_type_target = type
  3.     if @weather_type_target != 0
  4.       @weather_type = @weather_type_target
  5.     end
  6.     if @weather_type_target == 0
  7.       @weather_max_target = 0.0
  8.     else
  9.       @weather_max_target = (power + 1) * 4.0
  10.     end
  11.     @weather_duration = duration
  12.     if @weather_duration == 0
  13.       @weather_type = @weather_type_target
  14.       @weather_max = @weather_max_target
  15.     end
  16.   end
复制代码
Game_Screen这里有一个设置天气的,
但是,我发现设置天气就是更改这些数值。
我有一些疑问。
怎么没有生成天气图形(雨、雪)的设置?是用bitmap吗?

然后我在Spriteset_Map找到了@weather = RPG::Weather.new(@viewport1)
果断猜测Wrather是RPG这个module里面的值
原脚本里面却找不到module RPG
梦石
0
星屑
50
在线时间
112 小时
注册时间
2011-10-6
回帖
177
发表于 2012-4-18 18:30:06 来自手机 | 显示全部楼层
本帖最后由 吉井明久 于 2012-4-18 18:44 编辑

在RPG::Weather这个内部类中。
代码可以在帮助文件里面找到。
或者 rpg.blue/manual/rpgxp/rgss/gc_rpg_weather.html


@hys111111这里有个脚本 www.creationasylum.net/index.php?showtopic=1832 增加了落叶,樱花等效果。可以参考。������

点评

不要笑我啦...全能搜索君... >_<  发表于 2012-4-18 19:01
谢谢,我改出了一个道拉基的  发表于 2012-4-18 18:59
谢谢,我先试试看能不能改天气  发表于 2012-4-18 18:40
回复

使用道具 举报

双子人

梦石
0
星屑
3205
在线时间
3619 小时
注册时间
2009-4-4
回帖
3901

开拓者

 楼主| 发表于 2012-4-18 19:10:55 | 显示全部楼层
null15.jpg
成功的效果图

点评

道拉基是桔梗花  发表于 2012-4-18 19:23
这是…倒垃圾?目测蓝色鲜花…  发表于 2012-4-18 19:14
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部