[bug]cam:setPosition does not work in huge world
Creeper9207 opened this issue · comments
Bordie commented
I absolutely love this library, and I don't think my game will work without it, but I am encountering a problem.
The camera's creation line is as such:
local cam = gamera.new(-700000,-700000,700000,700000)
but when drawing:
--cam:setScale(.25)
cam:setPosition(charx*4,chary*4)
--cam:setAngle(charr)
cam:draw(function(l,t,w,h)
love.graphics.draw(stat, 200, 200, 0, .3, .3, stat:getWidth()*.5, stat:getHeight()*.5)
love.graphics.draw(char,charx,chary,charr, .3, .3, char:getWidth()*.5, char:getHeight()*.5)
end)
cam:setPosition does not set the position to the character's location, instead the location stays at (-400, -300)
The character is moving to its own position, so I know it isn't a problem with my code, please help.
Enrique García Cota commented
Hi, I'm sorry, but there is nothing I can do here. It seems like a limitation on the hardware or in OpenGL. You will have to make your words a bit smaller.