채팅0

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

    조회수 652

    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

      게시글 리스트
      제목작성자작성일조회
      공지10-2022105
      6166121:585
      6166019:5334
      6165916:4572
      6165812:52127
      6165700:19196
      6165611-09245
      6165511-09221
      6165411-09246
      6165311-09277
      6165211-09254
      6165111-09300
      6165011-09351
      6164911-09296
      6164811-08342
      6164711-08353
      6164611-08419
      6164511-08486
      6164411-08502
      6164311-08489
      안내 배너 이미지