채팅0

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

    조회수 653

    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

      게시글 리스트
      제목작성자작성일조회
      3124502-06555
      3124402-06654
      3124302-06472
      3124202-06371
      3124102-06396
      3124002-06986
      3123902-062945
      3123802-06579
      3123702-061011
      3123602-06586
      3123502-061130
      3123402-06724
      3123302-06489
      3123202-06742
      3123102-06698
      3123002-06344
      3122902-06487
      3122802-06697
      3122702-06523
      3122602-06534
      안내 배너 이미지