You simply create the entity with coordinates that are offscreen, and have a draw function that draws the entities, and when they move onscreen, they will be drawn. Might also want to make sure they get deleted once the go offscreen again though.
render what's goes outside of the screen in 2d
Question
how can I render whats right outside of the screen on the left side? Like in Super Mario Bros for example? I want to move clouds endless over the screen. Here's an example of what I mean: http://image-upload.de/file/nSzNhe/612a71bf0d.png
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow