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

2015/4/29

Game Making stuck

HelpMe101 HelpMe101

2015/4/29

#
I'm trying to make a game that displays to random numbers on screen then users must add the numbers together to get the answer then input their answer into a box which adds a point to their score and if they get the answer wrong their life goes down by one. Help me please
azazeel azazeel

2015/4/29

#
how come we can help you if there is no specific clue, and you did not give any initial code. please make it a little bit practical. okey let me do my best, 1. make class number using label, import from existing class in greenfoot (provided by greenfoot) 2. make 2 object from label and set it with random number (Greenfoot.getRandomNumber(abc)) 3. show dialog box (Greenfoot.ask( )), and compare the user input against addition of those numbers
You need to login to post a reply.