Sheared canvas out of the window's range
Sheared canvas out of the window's range
There's the character, a white square with red border I can move.
But when it is out of the window size, (is it being followed by the camera), it disappears.
How can I always show the character?
Re: Sheared canvas out of the window's range
Hard to say without seeing your code. If you're drawing your character to a canvas, you can draw it to the screen instead. If you're using a scissor, you can remove the scissor before drawing it.
Re: Sheared canvas out of the window's range
Yes, as I said, draw the character to the screen instead of a canvas.
You don't need canv2 at all.
Code: Select all
-- Just replacing this:
love.graphics.draw(canv2)
-- with this:
carRender()
-- and removing this from carRender:
love.graphics.clear()
-- works.
Re: Sheared canvas out of the window's range
thank youpgimeno wrote: ↑Sun Feb 25, 2018 10:25 pm Yes, as I said, draw the character to the screen instead of a canvas.
You don't need canv2 at all.Code: Select all
-- Just replacing this: love.graphics.draw(canv2) -- with this: carRender() -- and removing this from carRender: love.graphics.clear() -- works.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests