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 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, about 5 years ago:
Yes, thank you, now it works
Sign help
By JCD, with 2 replies.
Last reply by JCD, about 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, about 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, about 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, about 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, about 5 years ago:
Did you try using the
setActOrder
method?
Need Help, pls
By PetrusderEchte, with 1 reply.
Replied to by Just_in, about 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, about 5 years ago:
You will need a center point, a radius, an initial angle and a direction (5 int values).
how to remove the object after 3 second
By mariq_rasyid29, with 2 replies.
Last reply by mariq_rasyid29, about 5 years ago:
thx again sir
climbing a ladder
By Genota, with 3 replies.
Last reply by danpost, about 5 years ago:
At line 118, insert the following: <Code Omitted>
how only in the world can play the backsound?
By mariq_rasyid29, with 9 replies.
Last reply by mariq_rasyid29, about 5 years ago:
wow, thx sir
Is there a way to count times the "isTouching" function is repeated?
By ThiagoPorto, with 4 replies.
Last reply by danpost, about 5 years ago:
ThiagoPorto wrote...
Where I add this
int
?
Anywhere in the class
not
in a sub-block (method or constructor).
How to use Lists
By Znarf, with 1 reply.
Replied to by danpost, about 5 years ago:
You could: <Code Omitted>or begin line 2 with: <Code Omitted>or, more simply: <Code Omitted>
How to refer to a variable in the World from an Actor
By Znarf, with 5 replies.
Last reply by Gbasire, about 5 years ago:
danpost wrote...
Gbasire wrote...
write this in your Actor class : <Code Omitted>
SnakeX
and
SnakeY
will not be found. Those variables were local to the constructor.
or alternatively if you have only one snake in the World write this in your Actor class : <Code Omitted>
Unless
snakeX
and
snakeY
were declared variables in the cla
85
86
87
88
89
90
91
X