Fix Issue #1
This commit is contained in:
parent
eed20f2382
commit
50a4133ae4
@ -222,12 +222,15 @@ function invector.ai.think(self)
|
||||
controls.up = false
|
||||
controls.down = true
|
||||
controls.jump = false
|
||||
if cross.y > 0 then
|
||||
controls.left = false
|
||||
controls.right = true
|
||||
elseif cross.y < 0 then
|
||||
controls.right = false
|
||||
controls.left = true
|
||||
if cross == nil then
|
||||
else
|
||||
if cross.y > 0 then
|
||||
controls.left = false
|
||||
controls.right = true
|
||||
elseif cross.y < 0 then
|
||||
controls.right = false
|
||||
controls.left = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user