I render to a Canvas object. The paint method basically just renders a BufferedImage that gets passed into the canvas. So what I did was just stored a set amount of images in an array, and then every time I rendered the scene, I drew every single image in the array to the screen. Not ideal (kinda slow), but it worked.
Oh, and I was using Java2D as opposed to Processing (which is used in the testbed examples). If anyone is interested in the code, I could throw it up on my website.
I render to a Canvas object. The paint method basically just renders a BufferedImage that gets passed into the canvas. So what I did was just stored a set amount of images in an array, and then every time I rendered the scene, I drew every single image in the array to the screen. Not ideal (kinda slow), but it worked.
Oh, and I was using Java2D as opposed to Processing (which is used in the testbed examples). If anyone is interested in the code, I could throw it up on my website.
glopal 11 months ago