채팅0

    점언 몹 속도 바꿨는데 너무 느린대 어디를 바꿔야하나요?

    조회수 670

    if math.abs(targetX - mobX) > 6 then

    if targetX > mobX then

    -- newInputX = 3

    newInputX = 2

    else

    -- newInputX = -3

    newInputX = -2

    end


    if gapX > 3 then

    makeCommand(_MobActionPartType.Move, newInputX, 0, nextAction)

    makeCommand(_MobActionPartType.Jump, 0.7, 0)

    elseif gapY > 1.8 then

    makeCommand(_MobActionPartType.Move, newInputX, 0, nextAction)

    makeCommand(_MobActionPartType.Jump, -0.7, 0)

    elseif gapX < 1.5 and targetX < mobX then

    makeCommand(_MobActionPartType.Move, 0, 0, nextAction)

    댓글1

    회원프로필

    0.7을 바꿔보센

    2024.02.06 23:38

      안내 배너 이미지