점언 몹이 자꾸 맵밖으로 날라가는데 어디를 수정해야되나요?
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 31162 | 02-06 | 449 | ||
| 31161 | 02-06 | 373 | ||
| 31160 | 02-06 | 534 | ||
| 31159 | 02-06 | 370 | ||
| 31158 | 02-06 | 369 | ||
| 31157 | 02-06 | 434 | ||
| 31156 | 02-06 | 443 | ||
| 31155 | 02-06 | 683 | ||
| 31154 | 02-06 | 338 | ||
| 31153 | 02-06 | 399 | ||
| 31152 | 30레벨이상 캐릭삽니다+12 | 02-06 | 395 | |
| 31151 | 02-06 | 1091 | ||
| 31150 | 다클 질문+5 | 02-06 | 529 | |
| 31149 | 02-06 | 426 | ||
| 31148 | 02-06 | 340 | ||
| 31147 | 02-06 | 382 | ||
| 31146 | 02-06 | 693 | ||
| 31145 | 02-06 | 770 | ||
| 31144 | 02-06 | 554 | ||
| 31143 | 02-06 | 409 |
댓글3
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)
이거엿나