Hello,
So I created a simple game with the use of Applet and I noticed I would get lines going through it as repaint is called. Is there a way to make it work smoother or a way to have layered images so that only a few images have to refresh?
Hello,
So I created a simple game with the use of Applet and I noticed I would get lines going through it as repaint is called. Is there a way to make it work smoother or a way to have layered images so that only a few images have to refresh?
Well I tried to make a multi layered Applet, but not having much luck at it. Can anyone help? I tried to use JLayeredPane, but nothing shows up.
hmm?
http://www.realapplets.com/tutorial/DoubleBuffering.html
Essentially, what you're googling for is double buffering. In dotnet you simply just tick the double buffered option. Ho ho ho.
OOOOO.... Thanks a lot. Never thought of buffering. By the way, do happen to know how to get a transparent Color? What's the value?
Never mind I figured out the value. Thanks for the help.
What was the value?
Along with RGB there is a fourth channel called the alpha channel which decides the transparency. I guess this is what UNOwen is talking about.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.