-- In love.draw \/
function loadplanetEarth()
------planetEARTH !
---moon(s)*
love.graphics.draw(planetEarth.moon.image,planetEarth.moon.x+camera.x,planetEarth.y+camera.y, math.rad(planetEarth.angle),planetEarth.moon.width,planetEarth.moon.height,16,16)
--Earth*
love.graphics.draw(planetEarth.image,planetEarth.x+camera.x,planetEarth.y+camera.y, math.rad(planetEarth.angle),planetEarth.width,planetEarth.height,16,16)
end
--In love.update \/
if love.mouse.isDown("l") then
loadplanetEarth()
end
If showEarth == true then
love.graphics.draw(planetEarth.moon.image,planetEarth.moon.x+camera.x,planetEarth.y+camera.y, math.rad(planetEarth.angle),planetEarth.moon.width,planetEarth.moon.height,16,16)
love.graphics.draw(planetEarth.image,planetEarth.x+camera.x,planetEarth.y+camera.y, math.rad(planetEarth.angle),planetEarth.width,planetEarth.height,16,16)
end
Why do I get an error report? It's like "'=' expected near showEarth".
Awesome. Worked. One more thing. How do you "destroy" the table if showEarth is false? I need to do this, because Earth is affiliated with lots of vars that count up while it's alive.