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
Need a loop for my project
By zworrub, with 1 reply.
Replied to by danpost, over 12 years ago:
A basic field timer would be like this: <Code Omitted>The 'max timer value will normally be a number about 50 or 60 times the number of seconds to delay between executions of the code.
Problems with changing worlds.
By DennisDvD, with 6 replies.
Last reply by DennisDvD, over 12 years ago:
Thanks Dan, always a saviour
Help With saving scoreS
By CooliMC, with 6 replies.
Last reply by CooliMC, over 12 years ago:
ok thx for your help
Help
By bizzard, with 5 replies.
Last reply by danpost, over 12 years ago:
bizzard wrote...
nevermind i fix the problem.
Why don't you show what you ended up with, so others who run into the same sort of problem may know what to do? or, so that someone may suggest to you a better way?
Loop rotation
By Bntyhntr501, with 2 replies.
Last reply by Bntyhntr501, over 12 years ago:
Oh wow, had no idea it was that simple thank you danpost.
Need Help on Color Sensing (New to Greenfoot)
By Speker3, with 1 reply.
Replied to by danpost, over 12 years ago:
The method you have shown does not make any sense. The 'if' block conditional has two flaws. The first is in your comparison: you should compare colors like this -- 'Color.WHITE.equals(image.getColorAt(16, 18))'. The other is, unless the image of your actor itself changes, the color 'image.getColorAt(16, 18)' will always be the same; which makes the 'if' clause pointless. If this method is in the class of the bullet (which it appears to be), then 'getImage' will get the image of the bullet, which is not, I believe, the image you want to check the color of. To get the image of the backgro
What is wrong with this code (probably a lot)
By iSuckAtGreenfoot, with 3 replies.
Last reply by danpost, over 12 years ago:
Two things: (1) there is no act method within the class, so no action will be taken; (2) the method called by 'intersects()' on line 106 in nowhere to be found and the method 'intersects(Actor)' called at line 104 will overshadow the 'intersects(Actor' method of the Actor class; you may want to use 'isTouching(Class)' instead to determine if it is eating time.
final game project
By jlin55, with 1 reply.
Replied to by lordhershey, over 12 years ago:
I found 3 scenarios with source they might be useful, of course you will have to ask these people to use their code and or project assets.
http://www.greenfoot.org/scenarios/674
http://www.greenfoot.org/scenarios/675
http://www.greenfoot.org/scenarios/7441
Suche Fehler!
By Asoraso, with 4 replies.
Last reply by danpost, over 12 years ago:
danpost wrote...
How can every line in the code given be so right and this one line be so wrong
Ok. I missed that one; so, not every line.
Help with lag!
By Daringa, with 2 replies.
Last reply by danpost, over 12 years ago:
lordhershey wrote...
It looks like your Object class here may be switching your worlds at every act call.
I do not see that as the 'nextLevel' and 'nextLevel2' place conditions on changing worlds within them. You are correct in mentioning the name of the class. Object should probably never be used as a class name, as all classes are already subclasses of the Object class (except the Object class itself). I do not get grabbing the background image every act cycle. This may be the main cause of the lag.
How does one make an actor move when another actor comes in contact with it?
By Arichman, with 2 replies.
Last reply by Arichman, over 12 years ago:
Here is the code for the Red_Ball: <Code Omitted> Here is the code for the Robot:
Implemate a robot
By emre.kilic, with 3 replies.
Last reply by AIMrOrange, over 12 years ago:
You can do this like that: Add the bomb whenever i should and let it do an animation. The animation itself should contain this code: <Code Omitted> Next time pls try to write your problem with more patience, i dont think anybody wants to help you if you write it like that ;)
Hey everybody i need some help!
By Boss, with 1 reply.
Replied to by AIMrOrange, over 12 years ago:
Ich kann zu "getNeighbours()" nichts sagen aber du kannst mal nen counter verwenden anstatt Greeenfoot.delay. Ansonsten nicht vergessen den timer auch wieder auf 0 zu setzten wenn du dein erstes Bild wieder setzt, das passiert hier ja auch nicht. Was dein Programm macht, ist innerhalb von weniger als 1 Sekunde bis zum letzten Bild durchzulaufen und dieses dann zu lassen. Mit 1 als Parameter für delay wirst du es generell schwer sehen können, aber wie gesagt ich empfehle dir mit einem counter zu arbeiten, das verlangsamt und stoppt dein Programm nicht ;)
There is some mistake can some in help me ?
By Asoraso, with 7 replies.
Last reply by emre.kilic, over 12 years ago:
you must go to school. in school you learn new and good things.
Code to reset all objeckts
By Asoraso, with 9 replies.
Last reply by Asoraso, over 12 years ago:
Danke Leute hat echt mir echt geholfen und ich bekomme mit dem Code: getWorld().removeObjects(getIntersectingObjects(null)); keine Error Meldung, falls da kein Objekt ist.
690
691
692
693
694
695
696
X