Project1
标题:
关于起雾效果
[打印本页]
作者:
769429500
时间:
2013-2-7 11:55
标题:
关于起雾效果
怎样作出突然起雾的效果?(脚本,图片等途径)
#脚本还是分别给吧……
[qq]1040770509[/qq]
作者:
吐槽砖家
时间:
2013-2-8 11:04
砖家有,但是不想给你,怎么办?
作者:
satgo1546
时间:
2013-2-8 12:56
没有说明是什么软件……
于是干脆把以前写的一个
for VX
的雾拿出来好了
[pre lang="ruby" line="1"]#==============================================================================
# ■ 简易雾图像显示 by satgo1546
#------------------------------------------------------------------------------
# 简单地在地图上显示雾图像。设置在下面:
# 设定方法:map_id => [filename,opacity,xmove,ymove,zoom],
# 参数讲解:
# map_id 地图ID
# filename 雾图像文件名,塞到远景图文件夹里就行了
# opacity 雾的透明度
# xmove/ymove 横/纵坐标移动速率,与远景一样
# zoom 缩放百分比,一般设定为100或200
#
# 最后一项不用逗号,否则别忘记逗号!
#------------------------------------------------------------------------------
FOG_LIST = {
#12 => ["Fog1",64,-2,2,200]
}
#==============================================================================
class Spriteset_Map
#--------------------------------------------------------------------------
# ● 生成远景顺便生成雾
#--------------------------------------------------------------------------
alias sgc_par create_parallax
def create_parallax
sgc_par
@foggggg = Plane.new
@fog1 = FOG_LIST[$game_map.map_id]
@foggggg.bitmap = Bitmap.new(200,200) if @fog1.nil?
@foggggg.bitmap = Cache.parallax(@fog1[0]) unless @fog1.nil?
@foggggg.z = 6444
@foggggg.opacity = @fog1[1] unless @fog1.nil?
@foggggg.zoom_x = @foggggg.zoom_y = @fog1[4] / 100.0 unless @fog1.nil?
end
#--------------------------------------------------------------------------
# ● 释放远景顺便释放雾
#--------------------------------------------------------------------------
alias sgd_par dispose_parallax
def dispose_parallax
sgd_par
@foggggg.bitmap.dispose
@foggggg.dispose
end
#--------------------------------------------------------------------------
# ● 更新远景顺便更新雾
#--------------------------------------------------------------------------
alias sgu_par update_parallax
def update_parallax
sgu_par
unless @fog1.nil?
@foggggg.ox += @fog1[2]
@foggggg.oy += @fog1[3]
end
end
end[/pre]
作者:
303095436
时间:
2013-2-14 11:29
不想用脚本就用公用事件,就是并行执行 开关是雾的一天,然后时间是个变量,当变量的值达到多少时,画面渐变,灰度(强度)为0至70
即可
作者:
Munchen1921
时间:
2013-2-14 15:35
@satgo1546,问下大神脚本有没有VA的???
作者:
wujunyoumask
时间:
2013-7-6 20:14
嘶。。。脚本好复杂。。。
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X5.0