I am programming a game where as one image changes place with another and I want the second image to be removed after 200ms, something I really could use some help with.
I'm still a beginner and all help is appreciated! Answer as if you were talking to a five year old!
public void setVisible(Boolean visible) {
ImageIcon ii = new ImageIcon(this.getClass().getResource(explode));
image = ii.getImage();
//this.visible = visible;
/*WITH THIS LINE OF CODE THE EXPLODE DOES NOT SHOW AT ALL,
I WANT TO MAKE SURE IT SHOWS BUT ONLY FOR 200MS*/
}
Thanks in advance!