채팅0

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

    조회수 651

    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

      게시글 리스트
      제목작성자작성일조회
      3126102-06557
      3126002-06409
      3125902-06464
      3125802-06759
      3125702-06402
      3125602-06452
      3125502-06444
      3125402-06643
      3125302-06502
      3125202-06617
      3125102-06514
      3125002-06540
      3124902-06463
      3124802-06639
      3124702-06323
      3124602-06355
      3124502-06552
      3124402-06652
      3124302-06470
      3124202-06368
      안내 배너 이미지