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 remove all actors in the world ?
By mohamed.talaat99, with 1 reply.
Replied to by bourne, almost 13 years ago:
world.removeObjects(world.getObjects(null));
How to carry points to next world.
By sanjo94, with 2 replies.
Last reply by sanjo94, almost 13 years ago:
IT WORKS !! :) Thank you very much. it really helped me out.
how to make my character move left & right?
By rash0078, with 1 reply.
Replied to by danpost, almost 13 years ago:
You are not adjusting your 'positionX' and 'positionY' fields when using 'move'.
Problems with Threads
By Kartoffelbrot, with 11 replies.
Last reply by Kartoffelbrot, almost 13 years ago:
Thanks to you all. danpost is right so far. @ kiarocks: I use a JFrame, too and paint onto a JLabel subclass. In older projects I didn't have this problem, too, but now I can't help myself.
Make object appear randomly but don't thouch eachother
By swendleys, with 3 replies.
Last reply by swendleys, almost 13 years ago:
Can somebody please help me I want to create crates in my world randomly but I don't want them to touch each other in the world
Problems with my code
By Necoo66, with 5 replies.
Last reply by davmac, almost 13 years ago:
<Code Omitted> Works fine. Even: <Code Omitted>
Determine right or wrong
By Blhaar2014, with 57 replies.
Last reply by Blhaar2014, almost 13 years ago:
Thanks man, you've been a great help!! In fact you did all the hard work hahah! See you around on the forum, and have a nice day!
Grab and hold objects
By y0us, with 42 replies.
Last reply by y0us, almost 13 years ago:
But the act methods of the containers are not the same, all the containers have different X and Y coordinates that they hold on on the ship. For example, Container1 has: <Code Omitted> and container2: <Code Omitted>
Select one image and make another image disappear
By JustMe, with 2 replies.
Last reply by JustMe, almost 13 years ago:
Sorry for the late answering but i was really in this game. but now im stuck again at this point. public void chooseEmergencyUnit() { if (Greenfoot.mouseClicked(this)) { } } im wondering how i can make a code, so that when i click on one of the two emergencys in my world, i can basically choose that one and put it somewhere else in my world.
How do i get my scoreboard to show the correct score in asteroids.
By xnefoo, with 5 replies.
Last reply by danpost, almost 13 years ago:
xnefoo wrote...
Sorry. But i still don't see what's wrong. Could it possible be because of line 24 because the score ends up at 100 no matter what at the end of the game.
In part, yes. Look at what it says in the comment above that constructor (the code where line 24 resides). Now, look at what it says above line 30.
setLocation with doubles
By cloudster101, with 2 replies.
Last reply by cloudster101, almost 13 years ago:
Thanks that worked!
Would an on-site Greenfoot Editor be a good idea?
By Entity1037, with 8 replies.
Last reply by lordhershey, almost 13 years ago:
Might be able to do something about that, I will have to see what they say.
Failed at first hurdle!
By morayc, with 3 replies.
Last reply by morayc, almost 13 years ago:
Thanks very much, Kiarocks, I'll try that now. Fab - that was it. I'm back on track again. Really appreciate your help
Game Laggy
By BahJiy, with no replies.
Pretty much the title says it all. When I start the game and it runs all the code in the "Run" method, it start getting laggy. Is there a way to fix this? Like through multi-threading or splitting the class into many smaller one. Or is because Greenfoot cannot handle this much at once? I can't really paste the code into the post because it's big and there are many classes. Any help or advice are welcome. Thank you in advance.
gifimage
By -nic-, with 7 replies.
Last reply by DSP512, almost 13 years ago:
how can i play the animation only once and then stop it?
739
740
741
742
743
744
745
X