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 unload worlds?
By Laurence, with 28 replies.
Last reply by danpost, about 10 years ago:
Laurence wrote...
Since it seems I can only input one command per timer if statement (I tried putting multiple and it tears apart the whole neat sequence),
A switch statement could also be used here: <Code Omitted>
Not launching greenfoot
By mcourtney, with 1 reply.
Replied to by davmac, about 10 years ago:
Hi, I would start by checking the full text of the error message - it probably says more than just "failed to launch". Does it give any indication of what the problem is or what to do?
How can I move my actor to the right with just sound
By eddy0102, with 1 reply.
Replied to by Super_Hippo, about 10 years ago:
It will look like this. You can change the numbers to your needs. <Code Omitted>
Invincibility for 5 seconds
By apcandre, with 1 reply.
Replied to by Super_Hippo, about 10 years ago:
<Code Omitted>
Healthbar problem
By Dudimus, with 17 replies.
Last reply by Dudimus, about 10 years ago:
Oh, it finally worked. Thank you so much.
Is there a way I can make my main character be pushed back whenever the "Zombies" hit it (Which would work in any direction)?
By Dudimus, with 4 replies.
Last reply by Dudimus, about 10 years ago:
Oh wait, it works! Thank so much.
removeTouching method
By SATH8888, with 2 replies.
Last reply by danpost, about 10 years ago:
SATH8888 wrote...
i a trying to use simple methods to remove an object when it is touched by another. i have tried isTouching and removeTouching but it gives me incompatible types error. can anyone tell me the right way to use this method??? thanks in advance.
In a simple variable assignment line like the following: <Code Omitted>The return type of 'methodName', or any literal, or the result of any expression evaluated on the right side, must be of type 'VarType'. If the method returns a boolean value, which the method 'isTouching' does, then that value
Change anchor point of Actor
By Genora51, with 7 replies.
Last reply by danpost, about 10 years ago:
Genora51 wrote...
Ps : to Danpost - I don't think I have seen a single forum post that you haven't replied to. Thank you so much for the help you have given on so many occasions to just about everyone. (Are you one of the developers of greenfoot?)
You might want to see
this discussion.
getWorld(); not found?
By Laurence, with 1 reply.
Replied to by Laurence, about 10 years ago:
Nevermind, I resolved it, found out that worlds already had world-related methods already at the disposable.
getMicLevel() not working
By proboardslol, with 6 replies.
Last reply by amjad, about 10 years ago:
Could you please send your debug-log and the description of how you get the error to us, as described in: http://www.greenfoot.org/support ?
What code do I need to reload after 10 seconds?
By Dudimus, with 6 replies.
Last reply by Dudimus, about 10 years ago:
It works, thanks!
java exercise 3.32 (completely lost - please help)
By bonney, with 4 replies.
Last reply by cabennet, about 10 years ago:
I am trying to make this work as well. I cut and past from bonney, still no luck. I tried the sound recorder and it works fine, Greentfoot recognizes the mic. Any help would be appreciated. <Code Omitted>
how to add a score counter?
By NAMYA0303, with 4 replies.
Last reply by danpost, about 10 years ago:
danpost wrote...
We will need to see the code for the Counter class (which is the blueprint for a Counter object) and the code to your world class (which should create and add a Counter object into the world).
You have only shown one of the two mentioned here. As far as the Counter class, it is a waste of cpu time to recreate the image of the Score object every act cycle when the score only changes once in a while. Change 'act' to 'updateImage' and do the following:
how to add a game over screen (my actor dies when touches the edge)
By NAMYA0303, with 4 replies.
Last reply by NAMYA0303, about 10 years ago:
thanks alot!!!!! u helped me with this game (: (: (; (; thnxxxxxxxxxxxxxxxxxx
how to kill my character if it touches the edge of the stage
By NAMYA0303, with 13 replies.
Last reply by ProfAvi, about 10 years ago:
if (atEdge()) getWorld().removeObject(this);
445
446
447
448
449
450
451
X