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
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
By Woollen, with 3 replies.
Last reply by davmac, almost 11 years ago:
The stack trace shows an error in the Jumper class. I see now that you've posted code for a Jumper2 class. That could be why the line numbers don't match up.
Problems with animation
By Widgy, with 1 reply.
Replied to by danpost, almost 11 years ago:
The last 'if-else' (lines 74 through 81) do not care what code comes before it; so, the image will always be 'image3' or 'image1' depending on the state of the "a" key. Use 'else if' through to the end, when you can execute the final 'else' (setting the image to 'image1').
How to make a retry and continue button
By sanderbakker, with 15 replies.
Last reply by sanderbakker, almost 11 years ago:
<Code Omitted> And thi
!HELP! Live Multiple Counter
By PG088, with 1 reply.
Replied to by danpost, almost 11 years ago:
My
Value Display Tutorial
has the information your require.
Game
By spider65, with 2 replies.
Last reply by spider65, almost 11 years ago:
Oh,Ok.
Can't get a class to run a method in the World.
By mickyg, with 3 replies.
Last reply by danpost, almost 11 years ago:
If the Mouse object is to have an image that shows over top of the StartButton object, there is no way to click on the StartButtton object. Therefore, you need to detect a click on the Mouse object and determine if the Mouse object intersects the StartButton object. The other thing you could do is change the actual mouse icon itself and remove the Mouse object class you created.
Please help, cannot get Actor to detect other object
By Lamoose, with 5 replies.
Last reply by danpost, almost 11 years ago:
That seems like a lot of code for a method that does not do to much -- and you still have to call the method: <Code Omitted>where you could just use: <Code Omitted>With this last line, the method can be removed altogether.
How do you correctly use Greenfoot.stop()?
By Lamoose, with no replies.
Apologies for posting again so soon, but I am now wondering how do you most effectively end a Project with the Greenfoot.stop() function? I have a moving object that when colliding with an obstacle is supposed to stop all movement and accept no further inputs from pressed keys, as you would expect. But the only way I've managed to achieve this is by adding the stop function onto the end of each and every keyPress act, which produces the desired result but I feel is perhaps unnecessary. Is there no way I can have a single act on its own that ends everything? For instance, I tried simply using this for when the obstacle is detected: <Code Omitted> but it does nothing? Thank you
Respawning?
By bb2ninja, with 1 reply.
Replied to by Super_Hippo, almost 11 years ago:
Instead of removing them from the world: <Code Omitted>
Cyclic 'act()' and interruptions
By trier, with no replies.
Is there a way to run greenfoot (play button) without the ciclic function 'act()' and with functions that treats interruptions? I want to initiate some attributes of my objects on play button, and I want to control my looping by myself, not 'act()'. Thanks a lot!
Stop the game when there are no actors left.
By sanderbakker, with 20 replies.
Last reply by sanderbakker, about 11 years ago:
Thanks! this worked for me
Help with walking Animation?
By BigSim, with 12 replies.
Last reply by BigSim, about 11 years ago:
Ohhhh ok. I get it now. Thank you for helping me
Playing a video
By PiRocks, with 2 replies.
Last reply by command_block_master, about 11 years ago:
can i use the code you made pie rocks?
How to make actors see other actors
By sanderbakker, with 2 replies.
Last reply by sanderbakker, about 11 years ago:
Thanks this also helped me alot
Remove actor after 1 hit
By sanderbakker, with 9 replies.
Last reply by sanderbakker, about 11 years ago:
Thanks this helped me very much it is fixed now
522
523
524
525
526
527
528
X