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 delay a method like the proton wave on asteroids?
By 4SeaBass, with 3 replies.
Last reply by danpost, about 11 years ago:
winnerpig wrote...
< Quote Omitted > How do you know that?
I believe that this would depend on the speed of your system. I wrote the following world class to test my system:
java.lang.NumberFormatException:
By makconas, with 2 replies.
Last reply by winnerpig, about 11 years ago:
It seems not a good manner to save X and Y , since you dont know the unit of the number of X or Y coordinate。maybe you could used two variables to save X and Y respectly
Problem with moving object
By USE1ESS, with 2 replies.
Last reply by USE1ESS, about 11 years ago:
Thanks for the explanation , danpost! My changed checkIfTouching method : <Code Omitted> Ps: Everything works now how it should work :)
KinectServer installing
By Alexia, with no replies.
Please can spend libraries: /opt/local/lib/libboost_thread-mt.a: No such file or directory /opt/local/lib/libboost_atomic-mt.a: No such file or directory
Platformer, Character Doesn't Stay Consistent When Standing
By Woollen, with 12 replies.
Last reply by Woollen, about 11 years ago:
I have honestly given up. I tried everything. Thank you all for trying to help me.
The game does not work properly and is detected as virus on several virusscanners.
By yedefei, with 9 replies.
Last reply by yedefei, about 11 years ago:
I don't very clear why my former scenario was be detected as virus 。I think maybe the action of repeatedly deleting and resubmitting was detected as the behavior of virus 。I’ve published the scenario once again ,if there were any problem please told me ,tks。
Old scenario
By Piet, with 1 reply.
Replied to by yedefei, about 11 years ago:
just searching on the internet
How to get an Object from a Java.util.List?
By yolomilk, with 9 replies.
Last reply by yolomilk, about 11 years ago:
thx
How to remove both an Actor and a bullet?
By Hpage17, with 7 replies.
Last reply by Hpage17, about 11 years ago:
Okay, Thank You, That solved my problem.
I am woking on a chess problem, I do not want to copy copy other
By fattyboy, with 1 reply.
Replied to by danpost, about 11 years ago:
First, you need to explain what 'Chess( (int, int), int, int)' does. Show the method (or constructor) it refers to.
Help with Greenfoot-generated images
By Greenfoot.getRandomNumber, with 1 reply.
Replied to by danpost, about 11 years ago:
I believe the problem is that when you draw the bar for the new value, you are not doing anything about the bar that was previously drawn. It is not replaced when you draw a new bar, but the new bar, which may have less length, is drawn over part of the old drawn bar. In other words you need to "remove" the old bar before drawing the new one. To avoid drawing every act cycle, call the 'protonBar' method from the constructor and from the 'setProtonRecharge' method (at the end of both).
Getting Heap space error. Tried restarting. Didn't work. Continues to get errors.
By Myopunk119, with 1 reply.
Replied to by Royalblue64, about 11 years ago:
The only obvious problem that I see in this code is that the BossBeam actor has a while loop in its act method. In this case, the loop is checking to see if atime is less than 14, which it obviously is when it spawns. This means that the program gets to this act method and is
never able to exit the method.
Typically, it's bad practice to use while loops within the act method anyway, so I definitely suggest getting rid of that.
Why does one of these work, but the other doesn't?
By mickyg, with 2 replies.
Last reply by mickyg, about 11 years ago:
Thank you!
Side Scroller Help
By Royalblue64, with no replies.
Hello all, It's been a long time since I've done anything more than tinker around with Greenfoot, but now I'd like to make some serious projects again. The only impediment to my progress is that I never figured out how to create a world that functions as a side scroller. What I mean is that I've never made a project in which the "camera" remains centered on the player while the player navigates the world, and the world would scroll off screen as in any traditional side scroller. All I'm looking for is a little help getting started with this; if you know of any good tutorials that cover this or want to share some relevant code, I would greatly appreciate the assistance! =D
how to make greenfoot re-execute the code
By axxv, with 2 replies.
Last reply by Royalblue64, about 11 years ago:
I believe the answer to your question is that you have to reset the values of "start" and "randomNumber" in the act method.
523
524
525
526
527
528
529
X