Hello again
So, I want my game to be a little like pacman. When pacman eats the bigger circle, he is capable of eating the ghosts, in a period of time. I want that too.
As you can see, i havn't really reached far to accomplish that. The 'Big circle' in this example is the class FD_special.
Also, when my instance eats the FD_special, i want it to become bigger, so it is visual that you ate the powerup.
And at last, as the topic says, I want my class to only be able to this for a period of time.
/**
* Denne metode sørger for at spise FD_special klassen.
*/
public void spis_fd_special()
{
if ( canSee(FD_special.class) )
{
eat(FD_special.class);
Greenfoot.playSound("slurp.wav");
}
}
