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
Programming A.i. for Pong
By Kronos, with 15 replies.
Last reply by Super_Hippo, over 9 years ago:
Try this:
BACKGROOUND
By rachpaguia@gmail.com, with 8 replies.
Last reply by Nosson1459, over 9 years ago:
don't be sorry the forum is here for a reason
how to create a scoreboard
By fxrrxr, with 19 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
Thank you so much ! god bless
Picking Things Up
By bluebananas, with 10 replies.
Last reply by Super_Hippo, over 9 years ago:
I think you either have to control the BuoyKids from the Bob which is throwing it or change a variable as a condition for the hagis method in the BuoyKids object when releasing it. I doubt that BuoyKids should be a subclass of Bob.
Avoid randomly generated moving platforms from overlapping
By beshie, with 1 reply.
Replied to by danpost, over 9 years ago:
Add the following to the Ice class: <Code Omitted>Just be sure that there is room for one at all times you try to add one or the scenario may appear to "freeze".
New Bg Music
By rachpaguia@gmail.com, with 9 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
Oh, i didn't know that was possible. thank you so much for your help!
Code for making an object orbit another is causing a slow spiral rather than an orbit
By macho_horse, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
I think it is easier to understand why this is not forming a circle if you would change the 4 to a higher number. To make it be a circle, it had to move 0 and that is also not working. Try this:
Moving on to the next level?
By AxIBoop, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
<Code Omitted>
BACKGROUND MUSIC
By rachpaguia@gmail.com, with 2 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
Thank you!!!
terminal window
By rachpaguia@gmail.com, with 7 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
Thank you so so much!
I need help URGENTLY :(
By Katsura, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
For linking portals, I would think of doing it like the following. (Call the addPortal method when you want to add a portal. Depending on how you want to do it, this method could look different or could be simplified.) For the other part, in your counter, when the value changes, check if it is 10.
Cannot find method
By SeaShore, with 1 reply.
Replied to by danpost, over 9 years ago:
Line 14 will not find the 'endGame' method in the World class and will not look for it in your MyWorld class until you reference the world as a MyWorld type world. Change line 13 to: <Code Omitted>
Blast animation
By horde, with 13 replies.
Last reply by danpost, over 9 years ago:
I think the distance moved has to be the differences in the width -- not plus or minus the sum of the width (for one thing). The normal width looks wrong at line 24 (for another).
I need help urgently please!
By Scarlett, with 2 replies.
Last reply by danpost, over 9 years ago:
If 'Burger' counts the number of burgers eaten and you want an apple to spawn after every ten burgers are eaten, then line 5 should be: <Code Omitted>However, the code is probably misplaced. It needs to be located immediately after the following: <Code Omitted>Or, at least, the conditional should be placed there (it can still call this method, but without conditions in the method itself).
end game
By rachpaguia@gmail.com, with 10 replies.
Last reply by danpost, over 9 years ago:
rachpaguia@gmail.com wrote...
My problem is that my background isn't scaled to the screen of greenfoot.
Then use this: <Code Omitted>
379
380
381
382
383
384
385
X