Function argument expected ','
Posted: Sat Jun 20, 2015 12:08 am
I don't know what i've done here that doesnt work, I have an if function argument on the line that it's talking about.
the line it's talking about it the one directly under where it says collision detection.
edit: forgot the .love file
Code: Select all
-- Collision detection
if checkCollision(bullet.x, bullet.y, bullet.Img:getWidth(), bullet.Img:getHeight, player.x, player.y, player.Img:getWidth(), player.Img:getHeight()) then
player.x = player.x + (10000)
isAlive = false
end
if checkCollision(bullet.x, bullet.y, bullet.Img:getWidth(), bullet.Img:getHeight, player2.x, player2.y, player2.Img:getWidth(), player2.Img:getHeight()) then
player2.x = player2.x + (10000)
enemyAlive = false
end
end
edit: forgot the .love file