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
find out the number of objects from the world
By Heliox00, with 12 replies.
Last reply by Heliox00, over 10 years ago:
Hab meinen Fehler jetzt gefunden auf Grundlage von deinem Tip (mit der act Methode) funktioniert jetzt alles super. Vielen dank für die Hilfe ^^
How do I move multiple objects/actors from one actor
By jimicoolio, with no replies.
solved it
Problems with changing a sound
By Vellyxenya, with 8 replies.
Last reply by Super_Hippo, over 10 years ago:
Ok... well, I didn't know that ;)
Greenfoot.stop();
By Vellyxenya, with 2 replies.
Last reply by Vellyxenya, over 10 years ago:
Thank you, it works! :) I had tried something like that but I didn't create its own method so maybe that was the problem^^
Stop Game Once Two Actors are Removed.
By smcgee, with 8 replies.
Last reply by smcgee, over 10 years ago:
thank you - it works now
Greenfoot account
By spider65, with 3 replies.
Last reply by smcgee, over 10 years ago:
One more thing - the code you provided for ending a program after the removal of two classes - we got it to work!
Make an object go after another object
By Bassusour, with 2 replies.
Last reply by Bassusour, over 10 years ago:
Thanks for answering, but your code shows an eror saying: "non-static method getX() cannot be referenced from a static context", and the same goes for the getY() I do not know the problem behind your code, as the getY() and getX() returns an int, which is what I need.
Removing object
By lexboy112333, with 1 reply.
Replied to by ElNo, over 10 years ago:
In general your idea works well. But you have to put an method-call for your move()-method in your act()-method or it won't be executed. <Code Omitted>
Placing Objects in a World using a loop
By GreenMan15, with 2 replies.
Last reply by GreenMan15, over 10 years ago:
Oh my gosh Thank you so MUCH! Been working all morning on this and could not for the life of me understand what I did wrong. The explanation made perfect sense to me.
Meaningless Error in Console - how to get rid of it?
By LehrerKopf, with 3 replies.
Last reply by LehrerKopf, over 10 years ago:
Sure, i can. The Code isn´t changed, just the Constructor + one additional constructor with a destruction time. Ah. And the class is renamed. Thanks!!
Objects Falling
By spider65, with 7 replies.
Last reply by danpost, over 10 years ago:
spider65 wrote...
Can you just give me the code because I still do not get what you are saying.
I think I have supplied all the code necessary -- maybe not all in code form; but very little of what is needed was not supplied in code form -- and even that was spelled out pretty clearly.
Greenfoot Penguin Scenario Speed
By kieran, with 1 reply.
Replied to by danpost, over 10 years ago:
You could just use an 'int' instance field for the speed of the cloud and increment it when changing directions. However, it will not take long for the cloud to move at incredible speeds. Tracking the x-coordinate of the clouds in an instance field of type 'double' can help allow more back-and-forths before they reach those outrageous speeds. However, just doing the first does get the job done (if you can deal with the long-term behavior imposed). Placing a maximum limit to the speed might be a viable option. If you still have issues, post the code that you are trying to use so we can g
Help me for switching world
By thewisegamer, with 10 replies.
Last reply by thewisegamer, over 10 years ago:
@fearDnine Indonesia
How can i create a multiple level in 1 world?
By fearDnine, with 2 replies.
Last reply by fearDnine, over 10 years ago:
ah thankyou!!! it's work on my project :)
Game over starts at same level
By PrincessPeach, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
You can have a GameOver screen.
493
494
495
496
497
498
499
X