This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
Need to create this game
By JACK11, with no replies.
Hi, I am trying to build a game as per the instruction is given below but can't able to get it. Can, anyone please help me with that.(Many experts are unable to complete this whole game so you can take it as challenge) You should come up with your own news items for the program. List your news items using the below template in the MS Word file. News Item and Fake/Real (Maximum item 3) News items and Fake/Real status should be stored in the program using parallel (two separate) arrays. When a user adds an instance of an actor sub class to the Greenfoot scenario and clicks on the act button, the program should ask the user to choose one of the two games: Fake Count Game or News Quiz Game. The default number of news items to use in either game is 3. However, the program should allow the user to select a different number of news items to be quizzed in the game. The maximum number is 10. The program should present random questions from the news item list. Each news item presented in a game must be unique. That is, once a news item is selected, it should not be used again. Fake Count Game The user has to guess the number of fake news items in the list of news items presented to the user. It is up to you to use a dialog box or the command window to present the list of news items. If the user correctly guesses the number of fake news items, the program should display a congratulation message. If not, the program should display each individual news items presented in the game along with its true/fake status to the command window. News Quiz Game User has to guess true/false for each news item presented to the user in a dialog box. Once the quiz ends, program should print the percentage of correct answers followed by a quiz report card with the following headings: News Item Fake/real User Choice The Fake/Real and User Choice columns can contain TRUE/FALSE values. The Fake /real column should contain values according to the data stored in the parallel arrays. The User Choice values should be according to the user input during the game.
My problem with decimal speeds
By Nate2002, with 3 replies.
Last reply by Nate2002, over 6 years ago:
It works. Thanks danpost
for jak
By SanjiNaha, with no replies.
public void fireball() { if (Greenfoot.isKeyDown("r")) { World MyWorld = getWorld(); MyWorld.addObject(fire, 0, 0); fire.setLocation(getX(), getY()); fire.setRotation(getRotation()); } }
Help my images dont change
By SanjiNaha, with 3 replies.
Last reply by SanjiNaha, over 6 years ago:
it works
How to use set location to change between multiple worlds
By Tietie12, with 2 replies.
Last reply by Tietie12, over 6 years ago:
thank you so much it works perfectly
Code shows error
By LightningFast, with 5 replies.
Last reply by danpost, over 6 years ago:
LightningFast wrote...
UPDATE: I did fix all that I was confused about! But now I need help throwing the pie in the direction the Hero was detected and not change its path (it's being launched and its path is fixated at the spot the Hero was located at). Right now the x-coordinate changes accordingly to the x-movement of Hero :(
Do not change the rotation (or turn towards anything) in the act method of the bullet.
Problems with getRotation, setRotation
By NotAProYet, with 13 replies.
Last reply by NotAProYet, over 6 years ago:
OH! Sry I totally missed that one... It works just fine... Thanks for your help (again)
Varying PowerBar!
By LightningFast, with 11 replies.
Last reply by LightningFast, over 6 years ago:
yea I can see the confusion... I realised I wasn't really done and didn't understand really much from the tutorial video I was watching. To be honest, I was thinking of like passing the "powerAdd" like a score system to a constructor, like using OOP. I will retry and check in if I run into any problems.
It works, but why?
By RcCookie, with 3 replies.
Last reply by danpost, over 6 years ago:
RcCookie wrote...
I know the general purpose of a try/catch-block, but in this case, the exception is thrown every frame. Nevertheless the Actor does look towards the mouse, witch is what I don’t understand: if there is nothing in mouseInfo, why can it point in the right direction, or the other way around: why does the execution throw an error, if there is a value stored?
The exception is NOT thrown every frame.
fibonacci
By ronald, with 4 replies.
Last reply by ronald, over 6 years ago:
thank you
get actor in front
By Starlord_20, with 4 replies.
Last reply by Starlord_20, over 6 years ago:
Thank you!
Can I make a World a superclass of another World?
By LightningFast, with 5 replies.
Last reply by LightningFast, over 6 years ago:
it works thank you!!!!!
Game does not work
By Sebastiano, with 1 reply.
Replied to by danpost, over 6 years ago:
Sebastiano wrote...
Hello i have made space invaders and works perfectly in greenfoot however i have uploaded it to the site and when you click run it doesnt do anything you can find the game in the most recent scenarios 'space invaders' also i dont know if this helps but i was using greenfoot version 2.4.2
You must use Greenfoot version 3.1.0 or better to have a scenario run in HTML5/javascript.
sound won't play and gives runtime error
By LightningFast, with 7 replies.
Last reply by LightningFast, over 6 years ago:
oh I see, thank you!
How do I make a character bigger?
By LightningFast, with 3 replies.
Last reply by danpost, over 6 years ago:
LightningFast wrote...
should I put this in the world class or the hero class?
In whichever class whose instance is to have that image. Add a constructor to the class and scale the image there.
153
154
155
156
157
158
159
X