Project1

标题: 关于天气设置 [打印本页]

作者: hys111111    时间: 2012-4-18 18:18
标题: 关于天气设置
本帖最后由 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 RPGdsu_plus_rewardpost_czw
作者: 吉井明久    时间: 2012-4-18 18:30
本帖最后由 吉井明久 于 2012-4-18 18:44 编辑

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


@hys111111这里有个脚本 www.creationasylum.net/index.php?showtopic=1832 增加了落叶,樱花等效果。可以参考。������
作者: hys111111    时间: 2012-4-18 19:10

成功的效果图




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1