채팅0

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

    조회수 671

    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-2022375
      6178912-2585
      6178812-2589
      6178712-24364
      6178612-23637
      6178512-22699
      6178412-22789
      6178312-22707
      6178212-21796
      6178112-21931
      6178012-21868
      6177912-191067
      6177812-181176
      6177712-181699
      6177612-161677
      6177512-141791
      6177412-142133
      6177312-142044
      6177212-131904
      6177112-132366
      안내 배너 이미지