找回密码
 点一下
查看: 599|回复: 0

关于滤镜,为何老死机。。。

[复制链接]
发表于 2011-12-31 14:01:41 | 显示全部楼层 |阅读模式
因为我嫌高级滤镜参数太多,于是改成了这样的模式
function CinematicFilterGenericForPlayer takes string tex returns nothing
    call SetCineFilterTexture(tex)
    call DisplayCineFilter(true)
endfunction

function Logot takes nothing returns nothing
    call CinematicFilterGenericForPlayer(udg_Ci[udg_LogoC])
    set udg_LogoC = udg_LogoC+1
    if udg_LogoC > 160 then
    call PauseTimer(udg_Logo)
    call ShowInterface( true, 0.20 )
    call CinematicFilterGenericForPlayer(udg_Pic_sub[0])
    endif
endfunction

1-----游戏逝去0.1秒
---call SetCineFilterBlendMode(BLEND_MODE_BLEND)
    call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
    call SetCineFilterStartUV(0, 0, 1, 1)
    call SetCineFilterEndUV(0, 0, 1, 1)
    call SetCineFilterStartColor(255, 255, 255, 255)
    call SetCineFilterEndColor(255, 255, 255, 255)
    call SetCineFilterDuration(0.03)
    call SetCineFilterTexture("Pic\\bo_sub_1.blp")
    call DisplayCineFilter(true)
---------------------------------
    local integer c = 0
    loop
    set udg_Ci[c] = ("logo\\bo_"+I2S(c)+".blp")
    set c=c+1
    exitwhen c>159
    endloop
    set udg_Ci[160] = "ReplaceableTextures\\CameraMasks\\White_mask.blp"
2------XX单位发动技能效果
function Trig_sysActions takes nothing returns nothing
    call ShowUnit( gg_unit_H000_0002, false )
    call ShowInterface( false, 0.20 )
    call TimerStart(udg_Logo,0.06,true,function Logot)
    call StartSound(gg_snd_logo)
endfunction
---

然后。。。华丽丽的死机了。。。我的目的是用160张图片和声音做成了一段短片,图片来源《使命召唤:黑色行动》

求帮助
您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-10-6 00:17 , Processed in 0.035754 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表