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 set location from actor to the world
By mariq_rasyid29, with 4 replies.
Last reply by danpost, almost 5 years ago:
Where is the
location
method being called from?
Stop moving
By Random2917, with 1 reply.
Replied to by danpost, almost 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, almost 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, almost 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, almost 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!
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, almost 5 years ago:
Yes, thank you, now it works
Sign help
By JCD, with 2 replies.
Last reply by JCD, almost 5 years ago:
danpost wrote...
Remove line 2.
thanks
how making the player level up ?
By mariq_rasyid29, with 12 replies.
Last reply by danpost, almost 5 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, almost 5 years ago:
thx sir all is working like in hope
Could someone explain to me how this code works?
By Kingslayer, with 1 reply.
Replied to by danpost, almost 5 years ago:
The middle line should be: <Code Omitted>
How to adress one kind of actor
By Znarf, with 3 replies.
Last reply by danpost, almost 5 years ago:
Did you try using the
setActOrder
method?
Need Help, pls
By PetrusderEchte, with 1 reply.
Replied to by Just_in, almost 5 years ago:
Look at my Profile, choose a game and if you want one of these I will give it you for free, even write me which game
How to move without human control
By TheGalaxysWolf, with 4 replies.
Last reply by danpost, almost 5 years ago:
You will need a center point, a radius, an initial angle and a direction (5 int values).
84
85
86
87
88
89
90
X