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 have a value across every last world and actor?
By DJSpicyDeluxe, with 2 replies.
Last reply by DJSpicyDeluxe, about 7 years ago:
Thank you very much danpost, this is what I will do!
removeObject() method won't work
By woody22, with 2 replies.
Last reply by woody22, about 7 years ago:
Alright that worked, thank you!
Publishing a project through Greenfoot: Share
By Swangbee, with 7 replies.
Last reply by danpost, about 7 years ago:
Swangbee wrote...
Hey. I have another issue. When i embed the final code it will only run like 1/10 times. I can see the enter screen but it won't run. I read the other forum you had and it said that it should run automatically, but it's not. Any tips?
Show enter screen codes.
Game starts instantly when I hit enter before I press the "Run" button
By EMRX, with 1 reply.
Replied to by danpost, about 7 years ago:
In this case, you can use: <Code Omitted>
I want to add an object when an actor is in certain position but the world doesn't add it
By Tasya16, with 16 replies.
Last reply by danpost, about 7 years ago:
Tasya16 wrote...
<< Code Omitted >> but dialog1 doesn't disappear from the world
That is because
dialog1
was never in the world. Again, you have "new Dialog1()" in your code more than once.
My Actor does not rebound on the corner
By EMRX, with 2 replies.
Last reply by EMRX, about 7 years ago:
Thank you, I solved it by creating transparent pixels there and when intersecting, it moves back off it.
Would like some assistance on my counter class
By Bossman1827, with 5 replies.
Last reply by danpost, about 7 years ago:
It is probably having each tube, both top and bottom, adding to the score. It would be okay to just allow it, internally. You can display half that value in the score display actor.
Sound Files
By dunzzz, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
You have to place the sound file in the "sounds" folder of your project. If the file is called "a.wav", then you use "a.wav" and not the full path or anything complicated.
ERROR: Can not find symbol
By zeltwood, with 6 replies.
Last reply by zeltwood, about 7 years ago:
Thanks! it worked, you saved my grade.
how do you change a spawn location of an actor based on world its in
By jsherry21, with 1 reply.
Replied to by danpost, about 7 years ago:
Have the world respawn the object (only remove it when hitting a border).
Hi, I need help creating a score counter for my game and I don't know what to do
By Josh3560, with 14 replies.
Last reply by danpost, about 7 years ago:
Josh3560 wrote...
Hello, sorry, this is the only time I'm able to access my project.
I wrote:
You have shown a
score
class which does not appear to have anything to do with your game. Now, explain that.
Actor Traveling to Predetermined Coordinates
By __anna__, with 1 reply.
Replied to by danpost, about 7 years ago:
Save the starting coordinates and move from there as you move farther each iteration of the loop. Use
Greenfoot.delay(1);
within the loop to show the animation: <Code Omitted>I think I did that right so you can adjust the speed easily. This would replace lines 16 thru 18.
Spawn in a Given Area
By AdiBak, with 2 replies.
Last reply by AdiBak, about 7 years ago:
Thanks, it worked!
MAKE THE FINAL SCORE PER LEVEL APPEAR ON THE GAME OVER WORLD/ YOU WIN WORLD
By gdrgnxxi, with 6 replies.
Last reply by danpost, about 7 years ago:
There are two main ways to get the score to the win world. One is to add a parameter to the win world constructors and pass either the
Counter
object or the
int
score to it. The other is to split the line that creates the win world and sets the world active up into two lines so that you gain a reference to the new win world and can work with it directly:
replaying levels
By ErasedBlade, with 1 reply.
Replied to by ErasedBlade, about 7 years ago:
never mind. i fixed the issue.i am curently moddifying the variables only in the screen 1 class and not in each indivisual classes.
187
188
189
190
191
192
193
X