채팅0

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

    조회수 712

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

    댓글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

      게시글 리스트
      제목작성자작성일조회
      공지10-2022376
      6178912-25100
      6178812-25105
      6178712-24381
      6178612-23652
      6178512-22715
      6178412-22805
      6178312-22721
      6178212-21809
      6178112-21946
      6178012-21882
      6177912-191081
      6177812-181189
      6177712-181715
      6177612-161691
      6177512-141804
      6177412-142146
      6177312-142059
      6177212-131918
      6177112-132386
      안내 배너 이미지