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

2015/3/24

actual and formal argument list differ in length

greenfoot_user greenfoot_user

2015/3/24

#
* */ public Effect() { super("explode", ".gif", 14); } /** * Act - do whatever the Effect wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { super.act();// Add your action code here. } }
Super_Hippo Super_Hippo

2015/3/24

#
What is 'super("explode", ".gif", 14);' supposed to do?
greenfoot_user greenfoot_user

2015/3/24

#
i have included this in subclass and want todisplay the gif images as animation
Super_Hippo Super_Hippo

2015/3/24

#
What class does 'Effect' extend? Show its constructor.
greenfoot_user greenfoot_user

2015/3/24

#
is there any idea that i can display animation at the end of game displaying you won
Super_Hippo Super_Hippo

2015/3/24

#
You can add a new object. This object can have an image with a string (for example 'You won') and you can also manipulate the image through the 'act' method of this class. I made it with a string which is changing its color after you lose in my Bomberman game.
You need to login to post a reply.