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
Get Location
By JuliusF03, with 2 replies.
Last reply by danpost, about 5 years ago:
More simply might be: <Code Omitted>or <Code Omitted>Swap rotations ("90" and "270") if needed.
My Project freezes if I click on "run"...
By InfernoUser, with 1 reply.
Replied to by danpost, about 5 years ago:
InfernoUser wrote...
So my project basically freezes every time I want to run it. Can somebody help me out? If needed ask for codes.
Start with
World
subclass codes.
help i keep getting this msg
By JCD, with 2 replies.
Last reply by danpost, about 5 years 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 5 years 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, about 5 years 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, about 5 years 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, about 5 years ago:
You're declaring onGround as an integer. Replace line 2 with<Code Omitted>
Health Bar
By dan.0071, with 4 replies.
Last reply by dan.0071, about 5 years ago:
All sorted now thank you :)
How can I install Greenfoot on an IPad (Apple)?
By Meierarend, with 6 replies.
Last reply by RcCookie, about 5 years 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, about 5 years ago:
Where is the
location
method being called from?
Stop moving
By Random2917, with 1 reply.
Replied to by danpost, about 5 years 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, about 5 years 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, about 5 years 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, about 5 years ago:
danpost wrote...
Use: <Code Omitted>If it is not
null
, it WILL be an
ENEMY
object.
Thank you so much! I appreciate it!
84
85
86
87
88
89
90
X