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
Carrying score over to a game over screen
By BrownBoii333, with 1 reply.
Replied to by Super_Hippo, about 11 years ago:
First, why do you want to create the Scoreboard in both worlds? In the 'act' method of 'Liveboard', you check if the 'life' variable is 0. If it is 0, you set a new world ('Endgame', which creates a 'Scoreboard' object in its constructor) and then, you add a new 'Scoreboard' to the 'old' world. You can remove this line. You also check for dying in the 'Minho' class. You only need this once. (Normally in the class of the actor which is dying.) When setting the world, you can pass the score. <Code Omitted> And then, in th
Objekte platzieren
By Asoraso, with 11 replies.
Last reply by Super_Hippo, about 11 years ago:
Ja, sorry :x Ich hab x1 und so weiter hingeschrieben. Du wolltest ein Rechteck haben. (x1|y1) sind die Koordinaten der oberen linken Ecke dieses Rechtecks, (x2|y2) ist unten rechts davon.
Need help with displaying the amount of degrees an actor has turned off the edge.
By ILOVELABRADORS, with 1 reply.
Replied to by NikZ, about 11 years ago:
How about using World.showText()?
Greenfoot.playSound()
By Andriyanto, with 10 replies.
Last reply by danpost, about 11 years ago:
@Kirito101, please show how you are trying to use those method, including what you are calling those methods on (include how you came about what you are calling them on also). NOTE: click on the 'Posting code?
read this
!' link below the 'Post a reply' input box before posting any code.
How to get a boolean from world in an actor?
By Kirito101, with no replies.
figured it out.nvm.
I need help in my color smash game
By lowens, with 1 reply.
Replied to by Super_Hippo, about 11 years ago:
With what do you need help? Looks like this thread... http://www.greenfoot.org/topics/find/45551#post_45551
need help in adding objects to world using arraylist
By lowens0, with 2 replies.
Last reply by lowens0, about 11 years ago:
thanks it worked! xD
Hey my code has gone wrong I want my spaceship to shot in the direction its facing
By coder04, with 5 replies.
Last reply by Super_Hippo, about 11 years ago:
Are you sure that his class name started with a capital letter? If his class is called 'enemylaser', then this would explain the confusion.
I want my spaceship to only shoot a number of shots before you cannot shoot anymore
By MrJoeShow, with 1 reply.
Replied to by NikZ, about 11 years ago:
Just make a variable shotsLeft = (your number). Every time the rocket shoots, do shotsLeft--. You can't shoot if shotsLeft is 0.
Problem with if(getWorld() == new World())
By nivilom86, with 8 replies.
Last reply by nivilom86, about 11 years ago:
Ok, thank you more and more ;)
How to change the value of a "Level
By oh123, with 2 replies.
Last reply by danpost, about 11 years ago:
The 'level' field in the Animal class should be made 'public' and 'static' and initialized in the CrabWorld constructor: <Code Omitted>Without this field being static, when you create the Animal objects from within your 'populateWorld2' method, the level fields given them are set to one. So now, instead of each object getting an individual level field when created, the class will have a single level field when the project is compiled.
greenfoot java.lang.IllegalStateException: Actor not in world.
By dottiestar, with 6 replies.
Last reply by dottiestar, about 11 years ago:
Thank you so much! I used the if condition before the method and it worked!
How to change the value of a field in the actor class
By olivia, with no replies.
sdf
Java 8 security
By Zamoht, with 2 replies.
Last reply by Sn3aKyGuY, about 11 years ago:
When you update Java it gives you the option to reset all your security exceptions. You may of clicked on accept when it asked you if you wanted to do it. They recommend you do it every 30 days for security reasons, but most people never do. Right click on the applets, then cluck Run. When the security message pops up allow it to run automatically in the future. Hope this helps.
Images according to Levels
By Mariachi, with 18 replies.
Last reply by Mariachi, about 11 years ago:
Awesome, Thanks to you two
647
648
649
650
651
652
653
X