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 make a Gravity for the actor??
By TopInPut, with 6 replies.
Last reply by CassWin, almost 13 years ago:
can any1 giv me the link of the video?? plzzz
Someone please explain this code to me
By yutiroe, with 6 replies.
Last reply by danpost, almost 13 years ago:
(1) the method declaration statement (2) 'list' will be a list of all actor object in the world (3) initialize id to zero (4) (a) local int 'i' field set to length of list (b) 'id' will be incremented each time block is executed (c) 'i' must be greater than zero to execute (5) execute inner block twice (this is what makes two actors get the same 'id' value) (6) get random actor from list (removing it from the list and adjusting 'i', the current size of list) (7) assign the chosen tile the current 'id' (8) set tile to not show its value (9) update the image of the tile (10)
Drag and drop objects?
By Mint_Green, with 3 replies.
Last reply by danpost, almost 13 years ago:
Please refer to the
String
class API to see what methods are available to use on String objects.
Icon
By Gamezocker, with 9 replies.
Last reply by JetLennit, almost 13 years ago:
Sorry about messing it up so many times, but i am glad it worked in the end!
sound events?
By chrissy098, with 3 replies.
Last reply by danpost, almost 13 years ago:
Refer to the greenfoot API, specifically, the
GreenfootSound
class to see how to construct them and what methods are available to use on them.
Help With Image
By JetLennit, with 10 replies.
Last reply by JetLennit, almost 13 years ago:
Thank you so much!!!
Music suggestions
By Nitrouspiggy, with 3 replies.
Last reply by Mint_Green, almost 13 years ago:
Cool:) Nyan cat's bad for the brain.
Making black keys (Book scenarios chapter 5)
By Sinned007, with 2 replies.
Last reply by Sinned007, almost 13 years ago:
Thanks danpost, Ok so the count in the book continues (i++) for every time the loop is effective. The reason to use the "for" loop is to take care of this feature. And the "!" in if( ! blackKeys.equals("") ) takes care of the only make keys if the string is not empty. And the minus one !! Wow I didn't see the book uses the WHITEkeys string. It makes sense now. Thanks again :)
Most efficient way to move 100+ actors?
By fastslash8, with 2 replies.
Last reply by fastslash8, almost 13 years ago:
Thank you so much! This works perfectly!
How do I stop Greenfoot running my code?
By basil60, with 3 replies.
Last reply by danpost, almost 13 years ago:
I am glad you figured it out. Also, I apologize. I believe I misunderstood what you were trying to do.
How do I add an object where the mouse is?
By Equinio, with 11 replies.
Last reply by Equinio, almost 13 years ago:
Awesome! I cannot thank you enough!
How do you stop what is happening in the background?
By dangamecreator, with 3 replies.
Last reply by danpost, almost 13 years ago:
Again, put the code where the player controls the flying of the pig in an 'if' block.
Flappy Mario
By Mint_Green, with 1 reply.
Replied to by Mint_Green, almost 13 years ago:
We can collaborate over this forum by the way.
Memory game Trouble
By yutiroe, with 4 replies.
Last reply by danpost, almost 13 years ago:
To compare the objects, you can use something like: <Code Omitted>You will need to add instance fields to hold references to the chosen objects ('firstChoice' and 'secondChoice'). Then, you can use their location to re-cover the objects with new Cards objects if they do not match.
Need help with turning at edges
By Marky3100, with 5 replies.
Last reply by Marky3100, almost 13 years ago:
Thanks a lot! It works great!
728
729
730
731
732
733
734
X