I want to create a battle transition in between my overworld and my battle background
I would have done it like this:
Put the gif in the constructor (the first action every class takes when it's being used) so put the gif in there the trasition starts the it loads all the other stuff like background and other images.
1 2 3 4 5 6 7 8 9 10 11 | public class battle_background extends World { private GifImage GifImage; GifImage myGif = new GifImage( "battle_transition.gif" ); public battle_background() { super ( 720 , 480 , 1 ); addObject( new charmander(), 185 , 420 ); addObject( new squirtle(), 514 , 212 ); } } |