채팅0

    점언 몹이 자꾸 맵밖으로 날라가는데 어디를 수정해야되나요?

    조회수 692

    점언 몹이 자꾸 맵밖으로 날라가는데 어디를 수정해야되나요?

    댓글3

    회원프로필

    if math.abs(targetX - mobX) > 6 then
    if targetX > mobX then
    -- newInputX = 3
    newInputX = 2
    else
    -- newInputX = -3
    newInputX = -2
    end

    2024.02.06 21:08
    회원프로필

    감사합니다 덕분에 수정해서 잘쓰고있습니다

    2024.02.06 23:06
    회원프로필

    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)
    이거엿나

    2024.02.06 21:08

      안내 배너 이미지