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

2020/3/31

Need help on what codes to use for my game

popo88 popo88

2020/3/31

#
Hello, For my final project I was required to make a game on Greenfoot and I decided to make a game where i show the players a list of specific fruits they need to collect (E.g , in the list states that you have to collect 4 bananas,3 apples , etc) and they have to catch the required fruits that falls from the sky after which they have to press a button (space) to see if they have the exact numbers on each of the required fruits. If they do they will pass the level and if they don't they will lose a life. As for my questions, I don't know what codes you need to use to check whether the players have the required fruits and numbers and the one that decides if they pass the level or lose a life.
danpost danpost

2020/3/31

#
... and your current codes are ...
popo88 popo88

2020/3/31

#
danpost wrote...
... and your current codes are ...
I haven't begun coding yet. But I'm planning to use multiple Counters for each fruits so that when the player collects the dropping fruits the counter with the image of each fruits on the side will go up. I will use the basic arrows button that allows the player to move right or left and as for the Falling fruits I am going to use Greenfoot.getRandomNumber that will make them randomly fall down and as it touches the player it will be removed.
danpost danpost

2020/3/31

#
Well, get that much done so you have something to work with.
You need to login to post a reply.