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
What are the steps to coding/making an "extra ammo" collectable thing so that when the character gets it, the ammo becomes full again?
By Dudimus, with 1 reply.
Replied to by danpost, about 10 years ago:
Just create a class for the "powerup" and have the Chased object "look" for it and when one is found (a) remove it from the world and (b) replenish the ammo (maximize the value of the 'ammo' field. How (when, where, and limitations) these "powerup" objects are placed into the world depends on your desires.
spawning at the beginning of the game
By HarleyQuinn, with 1 reply.
Replied to by danpost, about 10 years ago:
HarleyQuinn wrote...
I'm trying to make items randomly spawn at the beginning of the game, does anyone know how to do it?
You might take some hints from my
XWorld XActor Classes
scenario. There are methods in the XWorld class that might be of interest that help in placing objects in a world.
How to resize animated gifs?
By Laurence, with 14 replies.
Last reply by Laurence, about 10 years ago:
<Code Omitted>
With the code now like this, it works relatively well except one small issue. Despite the still-image being the exact size a
Help to show score at end of the game
By BEASTYLAD, with 6 replies.
Last reply by BEASTYLAD, about 10 years ago:
Thank you very much, i understand now when i think of it in the same way that the shot was complete. Thank you again.
updated Kinect instructions for Mac OS X
By dangjavageek, with 3 replies.
Last reply by dexpot, about 10 years ago:
pendragon wrote...
Following these steps, I get all the way to make and sudo make install and get this error message: clang: error: no such file or directory: '/opt/local/lib/libboost_thread-mt.a' clang: error: no such file or directory: '/opt/local/lib/libboost_atomic-mt.a'
You might need to attach -no_static: <Code Omitted>
A code to wait for 10 seconds then proceed to the next code
By loxtn10, with 4 replies.
Last reply by loxtn10, about 10 years ago:
Oh I get it now, so that's what the 550 is for. thanks a lot I get it now, I have another problem but this one is over, the other is here http://www.greenfoot.org/topics/56978/0#post_108166 would llove your support, your comments are pure aids thanks a lot.
Why Greenfoot.delay() is not working?
By angelol, with 1 reply.
Replied to by danpost, about 10 years ago:
It may be that your 'else' condition never evaluates to 'true'. This is because of the String comparisons which will always be false. The literal "a", for example, is equivalent to 'new String("a")' and that newly created String object is not the same object as what could possibly be referenced in 'unu' or 'duan'. Use the 'equals' method to compare the contents of the String objects instead of comparing the objects themselves:, similar to the following: <Code Omitted>
life counter problem
By christ, with 1 reply.
Replied to by danpost, about 10 years ago:
christ wrote...
i am trying to make the Tank actor lose a life when it hits the enemy actor. when it reaches 0 lives it should disappear. Therefore it should take 3 separate hits from the enemy for the tank to die; not 1 !, for some reason the code doesn't work and I think when the enemy touches the actor it takes 3 lives away immediately
It is not that it takes 3 lives away immediately. It is taking one life at a time for 3 consecutive act cycles. This is because the enemy continues to touch the tank for a considerable length of time (computer-wise, 3 act cycles is about 0.055 second
terminal window
By pennycollecter1, with 2 replies.
Last reply by pennycollecter1, about 10 years ago:
thanks i figured out the problem about 4 hours ago but thanks for the help anyways
How do you get a bullet to fire in the direction that the gun is pointing?
By ScratchMan, with 25 replies.
Last reply by Super_Hippo, about 10 years ago:
Click on "Discuss" and write a text into the "Start a Discussion" field (and the field below) to start a new discussion.
aim at mouse
By christ, with 3 replies.
Last reply by danpost, about 10 years ago:
christ wrote...
I need to figure out how to make the background scroll as the character moves and I have no clue, could you help me in any way?
See
this
discussion.
Scenarios from the learning book
By Cheiron3000, with 2 replies.
Last reply by Cheiron3000, about 10 years ago:
ok, semms I oversaw this... thank you anyway
Baru masuk
By yudi, with 1 reply.
Replied to by danpost, about 10 years ago:
yudi wrote...
bingun... memulainya bagaimana ya?
English ... please.
trying to make a snake game
By wahaj, with 3 replies.
Last reply by Denver005, about 10 years ago:
can i have your codes for my project please reply
How to pause a single actor
By AuroraGamer, with 2 replies.
Last reply by AuroraGamer, about 10 years ago:
Thanks, that worked
447
448
449
450
451
452
453
X