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
How to smoothly move images out and into world?
By alkwmd21ij, with 2 replies.
Last reply by alkwmd21ij, over 6 years ago:
Thanks!
levels in space invaders
By Sebastiano, with 2 replies.
Last reply by KylesGallery, over 6 years ago:
Like whats happening when it attempts to spawn the actors?
Image won't show in the world
By LightningFast, with 8 replies.
Last reply by danpost, over 6 years ago:
All I see are constructor in the subclasses. There is nothing to suggest any value changing. I do not even see an active value field in them.
adding only 1 actor
By TakedaYeet, with 2 replies.
Last reply by TakedaYeet, over 6 years ago:
wow! that worked perfectly, thank you very much!
moving with the mouse
By Bigbobatesloppyjoe, with 11 replies.
Last reply by Bigbobatesloppyjoe, over 6 years ago:
never mind I figured it out thanks for helping.
Keep Getting Null Pointer Execption
By Viransh, with 5 replies.
Last reply by danpost, over 6 years ago:
Viransh wrote...
How exactly do I assign the same objects that are already created in MyWorld? Please help me.
You could try this: <Code Omitted>at the beginning of your
Snake act
method, with something similar for the Food object.
Challenge for All
By JACK11, with no replies.
As I had given you all scenario on the previous post. It is a really difficult game I am almost trying for 1 month but some error always comes. So, if you are really good at java, complete the whole game and post the whole code.I bet there will be definitely one mistake. Hope you all can do it. Thanks.
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.
152
153
154
155
156
157
158
X