Merge pull request #2 from Dumpster-Studios/updates

Fix Issue #1
master
Jordan Snelling 2021-12-23 04:51:28 +00:00 committed by GitHub
commit 62316e03f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -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