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
Circular Progress Bar
By ronald, with 7 replies.
Last reply by ronald, about 5 hours ago:
I keep you informed
help i keep getting this msg
By JCD, with 2 replies.
Last reply by danpost, about 12 hours ago:
Start by removing lines 15 thru 18. You will most probably get different errors that will lead you toward fixing it. Oh, and change line 52 to: <Code Omitted>(that is one you would have been led to)
How to change world using inheritance?
By Risen, with 10 replies.
Last reply by rocket770, about 20 hours ago:
I really don't understand why you need a new method to change the world, it makes no difference and if anything, having an extra layer just makes in inconvenient if anything since it is causing problems? As for the sound, create a sound object where you can then pause or stop it before you exit the world. <Code Omitted> Start the sound using sound.play(); then you may pause it or stop it using <Code Omitted> or <Code Omitted>
reset help
By JCD, with 1 reply.
Replied to by danpost, 1 day ago:
JCD wrote...
i am trying to make a program but everytime that you play it and stop the simulation you neeed to reset it, is there a way to make it so i automatically resets on game start.
Show codes. Cannot fix w/o them.
Help with volume bar
By Sfven, with 2 replies.
Last reply by danpost, 1 day ago:
The
mouseClicked
method requires an
Actor
object (or
null
), not a class. You could try this: <Code Omitted>
whats the problem, boolean cannot be converted to int
By JCD, with 2 replies.
Last reply by rocket770, 1 day ago:
You're declaring onGround as an integer. Replace line 2 with<Code Omitted>
how can I get the world from an empty class?
By Who_TheGreen, with 2 replies.
Last reply by danpost, 2 days ago:
You can add a
World
type parameter to any method in your custom class that requires a reference to the world. That way, those methods are easily usable to multiple worlds.
Health Bar
By dan.0071, with 4 replies.
Last reply by dan.0071, 3 days ago:
All sorted now thank you :)
How can I install Greenfoot on an IPad (Apple)?
By Meierarend, with 6 replies.
Last reply by RcCookie, 3 days ago:
For a school I don’t think this is gonna happen. PCs are the only option here
how to set location from actor to the world
By mariq_rasyid29, with 4 replies.
Last reply by danpost, 3 days ago:
Where is the
location
method being called from?
Stop moving
By Random2917, with 1 reply.
Replied to by danpost, 3 days ago:
Random2917 wrote...
I'm really new to this and was wondering how would I say when an object gets to a certain point or the edge of the world, stop moving/walking? Thanks!
Instead of trying to say "stop moving", say "move when".
How making a 2 ways dialogue ?
By mariq_rasyid29, with 23 replies.
Last reply by mariq_rasyid29, 3 days ago:
idk what i must to put it
help!!
By Philinö, with no replies.
I updated my code so that I can set the legion variable to a method, but now the fishs won't spawn. My code: <Code Omitted>
Having a Problem on a Jump Animation with falling onto a Ground
By trGhuul, with 2 replies.
Last reply by danpost, 3 days ago:
trGhuul wrote...
while(Greenfoot.isKeyDown("Space") && onGround() == true); ****
Should use
if
, not
while
. Not sure if it makes any difference, but replace "
Space
" with "
space
" to be sure.
Having a problem with a Null Pointer Exception.
By DeUlo, with 2 replies.
Last reply by DeUlo, 4 days ago:
danpost wrote...
Use: <Code Omitted>If it is not
null
, it WILL be an
ENEMY
object.
Thank you so much! I appreciate it!
1
2
3
4
X