local target = _UserService.LocalPlayer
local nextAction = 0
local newInputX = nil
local mobX = mob.TransformComponent.WorldPosition.x
if (isvalid(target) and ai.LocalUnchaseTick < 7) then
if (ai.AttackWasLast) then
nextAction = _GlobalRand32:RandomIntegerRange(200, 900) / 1000
else
nextAction = _GlobalRand32:RandomIntegerRange(100, 160) / 1000
end
local targetX = target.TransformComponent.WorldPosition.x + 0.5
newInputX = targetX > mobX and 1 or -1
else
nextAction = (_GlobalRand32:RandomIntegerRange(100, 300) / 1000)
newInputX = _GlobalRand32:RandomIntegerRange(-1, 1)
end
local timelines = {}
local timelineIndex = 0
--log("platform left x (fh=%d)", platform.left.x, platform.left.foothold.Id)
--log("platform right x (fh=%d)", platform.right.x, platform.right.foothold.Id)
local lastTimeline = 0
local playerFh = _UserService.LocalPlayer.WsUserController.LastFoothold
local walkSpeed = 10
rb.WalkSpeed = walkSpeed
local function makeCommand(cmd, value, timeline, nextActionTime)
timelines[timelineIndex + 1] = {cmd, value, timeline - lastTimeline, nextActionTime}
timelineIndex = timelineIndex + 1
lastTimeline = timeline
end코드가 이렇게바뀜. 이렇게바꿔도 이속이빨라지거나 지형을 무시하는게 안되는데 뭐가문제인거임?
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 19817 | 01-27 | 344 | ||
| 19816 | 01-27 | 125 | ||
| 19815 | 01-27 | 737 | ||
| 19814 | 01-27 | 158 | ||
| 19813 | 01-27 | 231 | ||
| 19812 | 01-27 | 238 | ||
| 19811 | 01-27 | 380 | ||
| 19810 | 01-27 | 338 | ||
| 19809 | 지형무시 공유+6 | 01-27 | 485 | |
| 19808 | 01-27 | 510 | ||
| 19807 | 01-27 | 770 | ||
| 19806 | 01-27 | 226 | ||
| 19805 | 01-27 | 204 | ||
| 19804 | 01-27 | 335 | ||
| 19803 | 실험쥐 구함+6 | 01-27 | 230 | |
| 19802 | 01-27 | 192 | ||
| 19801 | 점언 팝니다+1 | 01-27 | 153 | |
| 19800 | 01-27 | 298 | ||
| 19799 | 01-27 | 746 | ||
| 19798 | 스티지+3 | 01-27 | 317 |
댓글1
ㅋ