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
Help Needed! Button clicking
By TheGoldenBucket, with 3 replies.
Last reply by danpost, over 11 years ago:
You could code it this way to act on a specific mouse button: <Code Omitted>
I have more problems than thought ^^'
By Yurey, with 18 replies.
Last reply by danpost, over 11 years ago:
Yurey wrote...
can u write me a code with the necessary methodes i dont have that high level programming skills ^^'
It would be the opposite condition to what you have in line 3 in your last code post.
keep the score even the world is resetted
By listiliz, with 3 replies.
Last reply by danpost, over 11 years ago:
There is no problem with calling the prepare method programmatically. Is there a question or problem with what it became ( "i tried this, but it becomes>" )? Explain the issue (how it is not right and what right is).
Can't insert background music into the world (file not found)
By Allhard, with 10 replies.
Last reply by danpost, over 11 years ago:
In the MainMenu class, remove the 'bgmp' field and both the 'musicstart' and musicstop' methods; then change 'act' to 'started' and 'private GreenfootSound' to 'public static GreenfootSound'. Finally in the 'act' method of the takemehome class, change line 5 to: <Code Omitted>
How to make camera slowly fallow actor
By Dudeson, with 3 replies.
Last reply by Super_Hippo, over 11 years ago:
I can't correct your code without seeing what you tried.
Creating a Button in inherited class
By opna, with 1 reply.
Replied to by Super_Hippo, over 11 years ago:
You would create a subclass of this class. I think it will look like this: <Code Omitted>Make sure that you uncomment the act method.
How do i make a score board pls help
By dj_cammy-ron-man, with 2 replies.
Last reply by azazeel, over 11 years ago:
http://www.pembinatrails.ca/fortrichmondcollegiate/compsci/greenfoot/levels/default.htm let us know your progress
How do you make countdown timer?
By Allhard, with 3 replies.
Last reply by danpost, over 11 years ago:
You are counting act cycles (which is better from a game-playing perspective -- not real time. Divide time by something line 55 (the approximate number of act cycles per second) for showing the text.
problems with this pls help me :D
By Yurey, with 9 replies.
Last reply by danpost, over 11 years ago:
I see no issues with the code given.
Scenario downloads
By fdw, with 1 reply.
Replied to by davmac, over 11 years ago:
fdw wrote...
Can you download scenarios besides the existing ones?
... No, it is not possible to download scenarios that don't exist. :p
Greenfoot Hitbox
By craeXD, with 4 replies.
Last reply by danpost, over 11 years ago:
craeXD wrote...
What am I doing wrong? I just want a circle/field around my Boss.class (not actor), where the bullet (P9mm) hits. Not only the body-part of it.
For a circle/field, use the 'getObjectsInRange' method. For around your Boss.class, code it in the Boss class. For bullet hits, look for Bullet.class.
Help Please
By mattsup, with 1 reply.
Replied to by danpost, over 11 years ago:
Images on your local computer are not accessible on the site. You need to upload it to a server (photobucket or imgur, for examples) and reference it from there.
Scrolling world, up to down [PLEASE help]
By pandu4431, with 6 replies.
Last reply by danpost, over 11 years ago:
pandu4431 wrote...
opps, i forget to ask one things, why the picture have blink when get new image layer??
I cannot rightly say what might be causing that behavior. There is nothing immediately apparent in the code given.
Project for class
By Regw03, with 3 replies.
Last reply by danpost, over 11 years ago:
There is another issue with the code you supplied. You are checking for the 'space' key being down to call the fire method and then checking if the key has been released in the fire method. Both will never be true at the same time; so, a bullet will never be fired.
HELP PLEASE!
By MrGigglesII, with 2 replies.
Last reply by azazeel, over 11 years ago:
just type the code. it will make clear, and i agree with davmac, 1st rule is read the manual. and by the way, never use upper case whole letters which mean you shout loud to us
570
571
572
573
574
575
576
X