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
Different World, Different Bullets
By Ostarius, with 2 replies.
Last reply by Ostarius, over 8 years ago:
Wow that is actually really smart Thank you :D
Random SHooting
By Ostarius, with 2 replies.
Last reply by Ostarius, over 8 years ago:
Thank you
Abstractions and Expressions
By clockrandom, with 4 replies.
Last reply by Nosson1459, over 8 years ago:
clockrandom wrote...
hah our teacher doesn't know - she just gives us the project without teaching us a thing :/
sounds familiar :)
Polygon World
By crxs, with 5 replies.
Last reply by crxs, over 8 years ago:
I understood ... I'll test. Thank you for now
My plane still fires even though it shouldnt
By 7oel, with 6 replies.
Last reply by 7oel, over 8 years ago:
Yehuda wrote...
7oel wrote...
Yehuda wrote...
7oel wrote...
When I add these lines what do i put on line 81 of the airplane code?
I can't tell you since the Airplane class only has 46 lines.
I mean countdown sorry
<Code Omitted>
Thanks!
Shooting Bullet Where Actor Is Looking
By Ostarius, with 16 replies.
Last reply by Ostarius, over 8 years ago:
Sorry for the late answer, everything is working now thank you anyways
Actor at Border > Start new World
By Ostarius, with 8 replies.
Last reply by Ostarius, over 8 years ago:
Works great. Thank you so much both of you!
Trying to make a counter
By Ian_Neef, with 4 replies.
Last reply by IHateMichaelKölling, over 8 years ago:
That's right super hippo u don't know shit
cant find symbol
By BrianOK, with 1 reply.
Replied to by Super_Hippo, over 8 years ago:
You used 'under' the line before, so you can't use 'ground' in the next one. You will also need a == instead of = in line 36.
Falling Meteors
By ChrisD, with 7 replies.
Last reply by ChrisD, over 8 years ago:
ChrisD wrote...
Also i was wondering how do i get multiple meteors to fall increasing in amount for the varying difficulty it increases in
e.g. Level 1 has 20 meteors, level 2 has 30, level 3 has 40, level 4 has 50 and level 5 has 60 and these meteors need to come from the top randomly
Timer Done
By Yehuda, with 6 replies.
Last reply by danpost, over 8 years ago:
Wasupmacuz wrote...
First, a question for the team, is there a minimum size for uploaded worlds? If so, this could be the issue.
I think the minimum size for uploading a scenario is 1 pixel by 1 pixel. The width of the frame in which an uploaded scenario is placed, however, is limited by the GUI control frame below the scenario. The scenario itself is still whatever size you made it. It only looks bigger because the background is white and blends into scenarios with white backgrounds. I would think that there should be a frame around the scenario itself, though -- which seems to be
Die
By alinasomcutean, with 1 reply.
Replied to by danpost, over 8 years ago:
Sounds like you need both a boolean field to track the state of the "space" key as well as an int field to time the delay after the key is released. If the int field is not zero, do not do anything except decrement the timer and exit the act method. Otherwise, the following should be done. The die should only be rolling when the boolean field indicates the key is up (timer is zero). Anytime the boolean field does not match the current state of the key, then the key was either just now pressed or just now released (there was a change in the state of the key) (again, timer is zero). Negate
How to make a loop
By BrianOK, with 3 replies.
Last reply by danpost, over 8 years ago:
BrianOK wrote...
I'm making a run and jump game so I need the floor to be constantly moving one direction. I have made my floor width 2000 pixels so it can last about 1 second. I need to be able to loop the codes so that it will be moving until my character hits an object.
What you need to do is create two floor objects and have them leap-frog each other. The world will need to be unbounded to allow actors to be placed outside the main window area. When removing other objects from the world, make sure to use '<' instead of '==' (as chances are they will not land exactly at any partic
Countdown doesnt work
By 7oel, with 8 replies.
Last reply by 7oel, over 8 years ago:
Thanks!
Progress with my pong game, but new question about boolean/static methods
By VinRio, with 4 replies.
Last reply by danpost, over 8 years ago:
VinRio wrote...
What should the method signature be for it if i need to call it from another place? And is it a good idea to use a boolean response to tell the method if it should end or should i just use a method by itself that compares the score to the endscore?
Well, either the score itself or a boolean value indicating that the score has reached the value of 'endScore' will need to be acquired somewhere outside the Counter class. With your current Counter class code, it would be impossible to get either outside the class. Somewhere you are accessing the Counter object to call the
360
361
362
363
364
365
366
X