I've been working on a fairly simple interface that allows multiple people to use sprites and walk around in a room conected through the internet. I've been having lots of the normal trouble with flickering but I had solved it with buffering. As soon as I started trying to use a transparent gif as the sprite the flickering returned. Here I have greatly simplified my program to basicaly just show the flickering after you hit connect so there is a lot of stuff that was used in the full version but is pointless here. If you make "sprite.gif" a normal gif there is no problem, but when parts of the gif are transparent there is noticeable flickering. Does anyone know why this happens?

I see some "suspicious" coding but I cannot (dear not) point it out until you explain/post
the User class, - so I can test it.

06-22-2005, 09:21 AM

axlan

2 Attachment(s)

ok

Sorry about that. As I said I took out most of the code to make the problem a little clearer. User was a class that kept track of the various variables assosiated with the users like name, location, ect. Its not assiciated with this problem so I took it out but accidently some references to it I guess. Heres the code with some more of the working bits removed. I found the problem is the same in this gutted version as it is in the full thing. I've tested it and it should compile and run as is, you just need to try a gif one of which I included for your convinience. [edit]it seems I was mistaken about the problem only occuring with transparent gifs. I now see it only to certain gifs the one I included causes the problem but I found others don't is there some sort of specific type of gif that must be used in java? The second download works without flickering.