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
Changing an Actors speed when not on Track
By hernry2812, with 7 replies.
Last reply by hernry2812, 14 days ago:
Thanks, it works now^^
Help with global variables and falling
By Samuaelk, with 9 replies.
Last reply by Samuaelk, 14 days ago:
Thanks a bunch man. Love your dedication to this forum. I have been going through the comments and find it awesome that you have been replying to these comments for over 10 years! Keep up the great work!
Problem with gettransperency method
By Roshan123, with 1 reply.
Replied to by danpost, 14 days ago:
The background image of your world MUST remain completely opaque (NO transparency allowed). You need to find another way to create the effect.
improvement for this code?
By PetrusderEchte, with 3 replies.
Last reply by danpost, 14 days ago:
Remove line 10. Change line 17 to: <Code Omitted>and add the following at line 19: <Code Omitted>
How To Add A Variable Showing The Speed Of The Object?
By GLOBALHUNT, with 3 replies.
Last reply by Gbasire, 15 days ago:
you mean, a text displaying the speed of the rocket on screen, or creating a variable to modify the rocket's speed ?
Remove object from world after being shot
By SanderNeele, with 4 replies.
Last reply by danpost, 15 days ago:
SanderNeele wrote...
So two actions at once.
Yes:
danpost wrote...
<Code Omitted>
... two actors at once.
Implementing Scrolling SuperWorld
By hernry2812, with 3 replies.
Last reply by danpost, 15 days ago:
hernry2812 wrote...
When my RaceWorld is 1920x1440, the window is in the central of the world. I would like to move the window to another position, because I can't spawn my actor outside of the window.
But you can set its location outside of the window and have the scrolling mechanism "move the camera" back onto it. For example: <Code Omitted>Do this
AFTER
setting the scrolling background.
Error object is hit
By SanderNeele, with 1 reply.
Replied to by danpost, 16 days ago:
Use: <Code Omitted>for each
raakt...()
call in act.
Single shot
By SanderNeele, with 7 replies.
Last reply by danpost, 16 days ago:
SanderNeele wrote...
I do not understand what I have to add in the code. I'm quiet new to Greenfoot. Can you show me what the right code is? Thanks!
I mean: <Code Omitted>
adding Objects
By aarav1514, with 2 replies.
Last reply by danpost, 16 days ago:
Try just: <Code Omitted>
Hiding some classes source code
By Roshan123, with 2 replies.
Last reply by danpost, 16 days ago:
Roshan123 wrote...
I want to publish source code, but i want 2 classes to be hidden So is their any way to hide the souce code or lock the code for 2 classes
First, rename the scenario using menu option "Scenario >> Save as..." to avoid loss of codes. Then, using your file directories, delete the ".JAVA" files of the classes you wish to hide the source code of before uploading. You can test the "hide" before uploading by trying to open the editor on those classes.
Error with sound
By BogdanMicu, with 10 replies.
Last reply by XApple15, 16 days ago:
BogdanMicu wrote...
Hai ca jucam barbut cu baietii poate nu isi dau seama.
Ai luat vreun premiu?
Player is glitching while fall...
By Genota, with 3 replies.
Last reply by Risen, 16 days ago:
Genota wrote...
Thank you for your answer. Unfortunately a syntax error message shows up: "bad operand types for binary operator '&&' first type: java.lang.Class<Ladder_Long_Function> second type: boolean" What can I do to fix that?
Sorry, my bad. I've done a mistake in my code. This is right<Code Omitted>
Why my work look different when I put it online?
By 23571113, with 2 replies.
Last reply by 23571113, 16 days ago:
How "999998s" come? It doesn't show before I upload my work. <Image Omitted>
GreenfootKara push a mushroom
By Janash0403, with 1 reply.
Replied to by danpost, 17 days ago:
Janash0403 wrote...
im programming Kara in Greenfoot. Now I want to move the mushrooms, but I dont know, how
Please refer to my
Sokoban Movement Demo
scenario.
1
2
3
4
5
6
X