欢迎光临散文网 会员登陆 & 注册

源代码(横着也能运行,记得去末尾水印)

2023-03-05 10:12 作者:猫-里奥  | 我要投稿

local CAMxx = 1.1;

local CAMyy = 0.85;

local xx = 420;

local yy = 600;

local xx2 = 850;

local yy2 = 550;

local ofs = 50;

local followchars = true;

local del = 0;

local del2 = 0;


function onUpdate()

    if followchars == true then

        if mustHitSection == false then

setProperty('defaultCamZoom', CAMyy)

            if getProperty('dad.animation.curAnim.name') == 'singLEFT' then

                triggerEvent('Camera Follow Pos',xx-ofs,yy)

            end

            if getProperty('dad.animation.curAnim.name') == 'singRIGHT' then

                triggerEvent('Camera Follow Pos',xx+ofs,yy)

            end

            if getProperty('dad.animation.curAnim.name') == 'singUP' then

                triggerEvent('Camera Follow Pos',xx,yy-ofs)

            end

            if getProperty('dad.animation.curAnim.name') == 'singDOWN' then

                triggerEvent('Camera Follow Pos',xx,yy+ofs)

            end

            if getProperty('dad.animation.curAnim.name') == 'singLEFT-alt' then

                triggerEvent('Camera Follow Pos',xx-ofs,yy)

            end

            if getProperty('dad.animation.curAnim.name') == 'singRIGHT-alt' then

                triggerEvent('Camera Follow Pos',xx+ofs,yy)

            end

            if getProperty('dad.animation.curAnim.name') == 'singUP-alt' then

                triggerEvent('Camera Follow Pos',xx,yy-ofs)

            end

            if getProperty('dad.animation.curAnim.name') == 'singDOWN-alt' then

                triggerEvent('Camera Follow Pos',xx,yy+ofs)

            end

            if getProperty('dad.animation.curAnim.name') == 'idle-alt' then

                triggerEvent('Camera Follow Pos',xx,yy)

            end

            if getProperty('dad.animation.curAnim.name') == 'idle' then

                triggerEvent('Camera Follow Pos',xx,yy)

            end

        else

setProperty('defaultCamZoom', CAMxx)

            if getProperty('boyfriend.animation.curAnim.name') == 'singLEFT' then

                triggerEvent('Camera Follow Pos',xx2-ofs,yy2)

            end

            if getProperty('boyfriend.animation.curAnim.name') == 'singRIGHT' then

                triggerEvent('Camera Follow Pos',xx2+ofs,yy2)

            end

            if getProperty('boyfriend.animation.curAnim.name') == 'singUP' then

                triggerEvent('Camera Follow Pos',xx2,yy2-ofs)

            end

            if getProperty('boyfriend.animation.curAnim.name') == 'singDOWN' then

                triggerEvent('Camera Follow Pos',xx2,yy2+ofs)

            end

    if getProperty('boyfriend.animation.curAnim.name') == 'idle' then

                triggerEvent('Camera Follow Pos',xx2,yy2)

            end

        end

    else

        triggerEvent('Camera Follow Pos','','')

    end

    

end

后缀是lua

前缀叫camera follow pos

开启文本后缀


源代码(横着也能运行,记得去末尾水印)的评论 (共 条)

分享到微博请遵守国家法律