채팅0

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

    조회수 710

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

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

      게시글 리스트
      제목작성자작성일조회
      3115002-06541
      3114902-06442
      3114802-06352
      3114702-06395
      3114602-06711
      3114502-06784
      3114402-06567
      3114302-06426
      3114202-06366
      3114102-06515
      3114002-06336
      3113902-06451
      3113802-06426
      3113702-06691
      3113602-06446
      3113502-061901
      3113402-06355
      3113302-06751
      3113202-06423
      3113102-06797
      안내 배너 이미지