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
Spawn a specific number
By kinobi, with 2 replies.
Last reply by kinobi, over 11 years ago:
thanks mate
Random Number Generator
By CaptainMorgan, with 3 replies.
Last reply by danpost, over 11 years ago:
How are you displaying the numbers? are they Actors or are you drawing them onto the background of the world? If they are Actors, you can give them an instance int field to hold the number they display. Then, if you remove the actor when its number is chosen (and replace it with a counter -- as if covering the number), then you would only need to randomly choose one of the number displaying actor from those that are still in the world, Because you are removing chosen ones, one cannot be picked more than once. Because you are choosing the number displaying actor itself, you can place the
Image Display when Key is Pressed
By CaptainMorgan, with 14 replies.
Last reply by danpost, over 11 years ago:
CaptainMorgan wrote...
Ok, I've tried this but is this code meant to allow the if (Greenfoot.isKeyDown("space")) to place a counter on the coordinates when it's pressed?
As the code is shown by NikZ, counters will be placed at location (28, 28) when the space key is pressed.
Letter generation
By IeuanMcCrushems, with 3 replies.
Last reply by danpost, over 11 years ago:
If it is separate, you should create an actor class to display the text. Create an instance of that class with the text required when the space keystroke is detected.
adding alien when enemytype is dead
By davemib123, with 3 replies.
Last reply by davemib123, over 11 years ago:
thanks lordhershey. instanceof was exactly what was required.
Broken Scenario
By basil60, with 4 replies.
Last reply by danpost, over 11 years ago:
As far as the 'multiply' method -- I do not see one anywhere.
Lists and object references
By Zamoht, with 3 replies.
Last reply by danpost, over 11 years ago:
It seems like you could just use the following: <Code Omitted>Would this not do the same thing?
NullPointerExeption when exported as Webpage
By Painter21, with 11 replies.
Last reply by Painter21, over 11 years ago:
The security Problem can be fixed in your "Configure Java" - ... App?, sry im not that great in english. However the NullPointer-Problem is fixed now. Thanks for all who helped. Greetings Painter
Come Chill
By LoLFeNXD, with 5 replies.
Last reply by davmac, over 11 years ago:
Messages in this thread have been deleted as they were nuisance posts and used offensive terms. The user responsible has been banned.
...
By IeuanMcCrushems, with 8 replies.
Last reply by IeuanMcCrushems, over 11 years ago:
Damn, he nearly went for the candy
How can you check if ANY class has touched you?
By SB001, with 3 replies.
Last reply by SB001, over 11 years ago:
Thanks guys, I totally forgot about passing null. I've used that. Thanks, SB001 - Samuel.T.Brown
Stop playing music
By Svek, with 10 replies.
Last reply by Svek, over 11 years ago:
Thanks man, u helped me alot this week. Really apreciating what ur doing keep up the good work
How to end a game when hitpoints are 0
By Svek, with 8 replies.
Last reply by Svek, over 11 years ago:
i got it thanks you helped me alot
can't find MyWorld
By Svek, with 25 replies.
Last reply by Svek, over 11 years ago:
okay thanks
Need a command for Greenfoot, have one but that doesn't work
By Kutariyo, with 22 replies.
Last reply by Kutariyo, over 11 years ago:
Thank you very very much. Now everything is like it should be. And I added a menu for the game as well. It's my luck that we had not to present it in school today so I could complete it right now but only with your help. You safed my life. Thanks :)
667
668
669
670
671
672
673
X