0

I'm following this tutorial and when I animate my aliens from a PNG image using drawImage() my image smears on the JPanel and I'm not sure why that is, anyone know?

[more description of issue] As I move the image from the right side of the JPanel to the left there is a trace left. It like leaves a trail/footprint... I'm not sure what is causing it...

Here is a pic of what i'm talking about,

https://i.stack.imgur.com/337jx.jpg

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
user772401
  • 2,754
  • 3
  • 31
  • 50

1 Answers1

0

I got it to work. It was because I wasn't calling the super.paint(g) method. I had already set the background color my constructor!

user772401
  • 2,754
  • 3
  • 31
  • 50