This site requires JavaScript, please enable it in your browser!
Greenfoot back
Dr.Dre
Dr.Dre wrote ...

2019/3/5

gif image

Dr.Dre Dr.Dre

2019/3/5

#
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);
    }
}
Dr.Dre Dr.Dre

2019/3/5

#
ps. the problem is when I try to compile it, it says cannot find symbol- class GifImage
danpost danpost

2019/3/5

#
Dr.Dre wrote...
ps. the problem is when I try to compile it, it says cannot find symbol- class GifImage
Remove line 3 (just not needed). Import the GifImage class into your project (use menubar: Edit>>Import class...).
You need to login to post a reply.