Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey, First of all thanks for this great tutorial.

Quick question, I have some simple lines in my game, but when they are in certain positions they either do not render at all or render at a different scale, is there anything that can be done about it or this is just normal for such implementation?

(+1)

Just in case someone has this problem, it has to do with the render camera.
It also breaks some other things like onMouseDown() not working or screen to world point/viewport whatever bring back unusable coordinates.

Using the simple method, without lighting support(1 main camera + pixel perfect camera attached to it), gets rid of all these problems.

(+1)

Thanks for this, I wasn’t expecting as many issues with this setup. If you don’t need post processing, then it is better to use 1 main camera and the pixel perfect component. It works slightly differently than the method that we’re doing here. Next year I’ll be sure to include this as well.