Keep previous renderings on screen

Hi,

It seems that the back-buffer is cleared before rendering new frames in Corona, even if I’m not rendering my own background. How do I prevent the back-buffer from being cleared?

I’m trying to make it so that each time I draw a game object, and move it, the object’s renderings in all of its previous positions will remain on the screen (back-buffer).

Is there a way to do this in Corona?

Of course the buffer is cleared as a new frame need to be rendered (if this didn’t happen every game would break). A snapshot is probably what you want or maybe look into textures.

If you want previous renders to be in the next frame then you need draw them manually and repeat.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.