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

2018/2/12

I'm stucked.

mariusvid mariusvid

2018/2/12

#
Hy guys! I'm making a game like FlappY Bird. But it's a little bit different because when you hit the obstacles you don't die...a question appear on screen and if you know the answear you get one more chance, and you if don't, then you die. But my problems is that i don't know how to code the question thing to appear on screen instead of Game Over....I have like 15 questions ready but idk how to do it. Help please!
danpost danpost

2018/2/12

#
You could make use of the 'ask' method of the Greenfoot class. Sample usage might be:
String response = Greenfoot.ask(question[n]);
See the Greenfoot class API documentation for more details.
You need to login to post a reply.