[java] Centering the player

Started by
1 comment, last by Zaxx 18 years, 10 months ago
If I draw to the screen every frame how would I centrer over the player? I tried the translate() method but the screen doesn't stay centred over the player and it leaves "afterimages" of things drawn in the last frame. Thanks.
Advertisement
Which way are you drawing the image, are you double buffering? Using BufferStrategy? Overriding the Pain() method?
BRING BACK THE BLACK (or at least something darker)
I'm double buffering and using active rendering. I'm not overiding the paint() method (I think).

My animation framework is based on a tutorial found at <http://fivedots.coe.psu.ac.th/~ad/jg/ch1/ch1.pdf>, which is linked from <http://fivedots.coe.psu.ac.th/~ad/jg/>.

This topic is closed to new replies.

Advertisement