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 resize an image from the internet
By Unomas, with 4 replies.
Last reply by Unomas, about 6 years ago:
ok thank you!
Help with boomerang code
By mshep, with 1 reply.
Replied to by danpost, about 6 years ago:
Line 17 looks troublesome. No comparison is done there. It's just a (
false
)
boolean
value, as is.
Help with arrays and for loop
By Sammyy2323, with 28 replies.
Last reply by Sammyy2323, about 6 years ago:
im not sure but i think i got it to work, if I have any issues then I will refer back to this thread. Thanks a lot man!
Help with for loops
By Mattzh, with 8 replies.
Last reply by Mattzh, about 6 years ago:
It works now; appreciate your time helping out!
Need help with making amount of balls appear on screen when taking the array output
By Sammyy2323, with 2 replies.
Last reply by Sammyy2323, about 6 years ago:
Ok could u maybe help figure out how I would fix this because I have been stuck for about 2 hours and in order for my game to progress, I need to finish this
transparent image
By Roshan123, with 17 replies.
Last reply by Kostya20052011, about 6 years ago:
Ok
how would i fix a void type not allowed here issue
By Weeb2.exe, with 66 replies.
Last reply by danpost, about 6 years ago:
Weeb3.exe wrote...
getRotation?
Did you try using it (to get rotation needed) to set the rotation of the bullet?
parking simulator problem with parking lot
By minetruck, with 15 replies.
Last reply by minetruck, about 6 years ago:
It worked! thank you! i need to learn more... xD
moving side to side
By Topben107, with 4 replies.
Last reply by danpost, about 6 years ago:
With fields: <Code Omitted>you can use: <Code Omitted>to move; and: <Code Omitted>to deflect off other actors.
separate actor
By JohnBis, with 1 reply.
Replied to by danpost, about 6 years ago:
JohnBis wrote...
i want to separate my two actor of same class with exact same distance.
Show code of class with attempted codes pointed out. Then give very detailed explanation of what you are trying to do.
Movement keys
By Mpache02, with 1 reply.
Replied to by danpost, about 6 years ago:
Insufficient amount of code provided. Please provide, at minimum, the entire method.
Scrolling level
By papst, with 1 reply.
Replied to by danpost, about 6 years ago:
Please refer to my
Scrolling Tutorial
scenario.
How to choose 4 blocks ?
By Nurnail, with 1 reply.
Replied to by danpost, about 6 years ago:
I would go about it a totally different way. I would have mouse clicking on
Pick
objects toggle the existence of its reference being in a
public static
List
in the
Pick
class. Then have the world
act
pick one when the list contains four elements (clearing the list afterwards). I am quite sure controlling the images would also be quite simple then (although I cannot see how the initial images are set). Other than the
static List
, the only other field required would be an
int id
to indicate which type item the
Pick
instance is. In all,
NEED SOME URGENT HELP
By imran.ahmad, with 1 reply.
Replied to by danpost, about 6 years ago:
imran.ahmad wrote...
I need to put above image on my program in the beginning. I am able to figure how to start the game. But I am not able to figure out how to open the Help page and exit the game? Can you guys help me out.Need quick response
Add an act method to check and respond to possible keys:
Background colour collision detection help
By -----Sam-----, with 1 reply.
Replied to by danpost, about 6 years ago:
It would probably help to first get the x and y offsets for the direction moving/facing: <Code Omitted>Now you can get the world background and compare the color at (getX()+dx*getImage().getWidth()/2, getY()+dy*getImage().getHeight()/2) to Color.BLACK. The color checking will need to be done for each case of moving direction.
121
122
123
124
125
126
127
X