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 with volume bar
By Sfven, with 2 replies.
Last reply by danpost, over 4 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, over 4 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, over 4 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, over 4 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, over 4 years ago:
Where is the
location
method being called from?
Stop moving
By Random2917, with 1 reply.
Replied to by danpost, over 4 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, over 4 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, over 4 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, over 4 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!
how can I write a java script from a java script?
By Who_TheGreen, with no replies.
Hi, I wanted to ask if you know a solution for my problem. My plan was making a coding game with Greenfoot. You should be able to code inside of the game while it´s running. But then the code should be inserted into a specific place inside of a still unused java file, that should reset itself at the start of the game. After the file has been updated (or maybe the scene), it should be taken as the new java class file from a custom class that will do it´s work when the program is ready. This process should be repeatable for several times in one game. Does anyone have a clue how to do this? (Btw, I did not begin with the project yet, because it needs this as a base... but I haven´t found a solution yet.) (If you´ve got a solution in C#, it´s okay as well.) Thank you very much in advance!
If touching.class
By Just_in, with 5 replies.
Last reply by Just_in, over 4 years ago:
Yes, thank you, now it works
Sign help
By JCD, with 2 replies.
Last reply by JCD, over 4 years ago:
danpost wrote...
Remove line 2.
thanks
how making the player level up ?
By mariq_rasyid29, with 12 replies.
Last reply by danpost, over 4 years ago:
If level is to increase at a constant rate (increasing for every 100 exp points), then you can simply do this: <Code Omitted>
how making backsound stop?
By mariq_rasyid29, with 5 replies.
Last reply by mariq_rasyid29, over 4 years ago:
thx sir all is working like in hope
83
84
85
86
87
88
89
X