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을 바꿔보센