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

2014/6/15

Achievements Button?

Mint_Greenie Mint_Greenie

2014/6/15

#
Hello All, I have an achievements button on my main menu. Is it possible for me to check in Flappy Bird if the user has completed an achievement such as die after 10 obstacles. Please give an example! E Thanks, Mintie
CooliMC CooliMC

2014/6/15

#
if you would do this localy for example if why dies 10 times during the same scenario then you can write an new class achievment where the achievment is the image and add this in your wolrd class;
public Background extends world
{
      int dies=0;
      Boolean menue=false;
}
public void adddies()
{
      dies++;
}
public void act()
{
      if(dies>10&&menue==true)
      {
            addObject(new Achievment(),100,100);
       }
}
Hope i could help you :D
Mint_Greenie Mint_Greenie

2014/6/16

#
@CooliMC: I see what you mean!! Thanks for your help!
You need to login to post a reply.