Original Post
I get really jerky input from my applet. this is my code
public boolean keyDown( Event e, int key )
{
if ( key == Event.LEFT )
{
x = x - 4;
}
if ( key == Event.RIGHT )
{
x = x + 4;
}
if ( key == Event.DOWN )
{
y = y + 4;
}
if ( key == Event.UP )
{
y = y - 4;
}
if ( key == Event.ENTER )
{
}
return ( true );
}
I use doule buffering and I''m having an animated gif moving along the screen. I found it easier to make the gifs animated because Java automaticly animated gifs that have frames in them. So I get more animation for less code work. Is this a bad thing? Can it be that the animated gifs are slowing the applet''s input down? Is there a way I can speed the input up?