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
Is it allowed to embed my scenario on other websites?
By Kartoffelbrot, with 3 replies.
Last reply by Kartoffelbrot, almost 11 years ago:
Ok, thanks.
Can't get my background to show.
By Alby, with 14 replies.
Last reply by Alby, almost 11 years ago:
:O it works thnx man!!!!!!!!!!!!
Uploading to the Greenfoot website~
By andbata, with 1 reply.
Replied to by Kartoffelbrot, almost 11 years ago:
It is in Greenfoot. Above the world class, there is a share button.
How to end a two level game
By fsg, with no replies.
I'm writing a maze game, and I've managed to end level one, with an endLevel1 method upon which it sets up level 2, but when I end my level 2 by reaching the home, which is supposed to end the game, it simply resets my 2nd level again. How do you end a multilevel game?
Size
By eddietheboss27, with 3 replies.
Last reply by Gevater_Tod4711, almost 11 years ago:
If you want to change the size of an actor you have to scale it's image: <Code Omitted>
Help me with the right condition in the If-Else-expression
By Omletti, with 18 replies.
Last reply by Omletti, almost 11 years ago:
Ah okay! Thank you :)
Access Method from another Class
By Barador, with 8 replies.
Last reply by Barador, almost 11 years ago:
Ok I did it on my own. I copied all the general code with this "int player" in it, into the Player1, etc. classes and accessed them from Bomb the way it's described in the tutorial which Gevater_Tod posted. Thanks anyways for the help.
How to get lives, and have an enemy take them away?
By dangamecreator, with 1 reply.
Replied to by Zamoht, almost 11 years ago:
Okay if I get this right you have to do a few things to make it work. First of all you have to declare a health variable or use your lives variable from the Alli class to keep track of your health. Then you have to change the act method for the enemy:
GREENFOOT DARE #1 THEME
By Game/maniac, with 3 replies.
Last reply by Game/maniac, almost 11 years ago:
oh, no doing this weekly would be way to much effort. This is monthly like the challenge
made 3 levels and level 1 and level 2 start fine, but level 3 won't start?
By dangamecreator, with 9 replies.
Last reply by dangamecreator, almost 11 years ago:
This is what I had to do private void checkNextLevel() { if (getX() == getWorld().getWidth()-1) { if (getWorld() instanceof Desert) Greenfoot.setWorld(new Level3(this)); if (getWorld() instanceof Rocks) Greenfoot.setWorld(new Desert(this)); if (getWorld() instanceof Desert) Greenfoot.setWorld(new Level3(this)); } }
Explosions
By DoctorProfessorYoshi, with 1 reply.
Replied to by Gevater_Tod4711, almost 11 years ago:
For an explosion you can either create some explosion images and after every act change the image of an explosion object to the next image or you can use only one image and change it's size. In the Luna Lander scenario you'll find an example for this. Luna Lander is a Greenfoot demo which you'll find in your greenfoot installation directiory.
Hi-tech question about JRE/JDK
By JDNelson, with 2 replies.
Last reply by JDNelson, almost 11 years ago:
Thanks for the reply. I since discovered my original analysis was incorrect. I basically had used a third party library. One of the methods did not require an new instance of it's class to be instantiated. This class is obviously not in the system JRE. I had to put the third party jar in (my jre home)/lib/ext/ I have it sorted out now. Thanks again.
Nullpointer exception?
By allekalle, with 2 replies.
Last reply by allekalle, almost 11 years ago:
Thanks! That fixed it.
Need help with live counter?
By dangamecreator, with 13 replies.
Last reply by danpost, almost 11 years ago:
Please only use one discussion thread for each issue. I answered this problem in the other discussion (as well as above, indirectly). Also, you should not continue others discussion with your own problems (start a new discussion and, if needed, refer to the other discussion).
How to end the game once a co-ordinate has been reached
By DarrenM2012, with 40 replies.
Last reply by danpost, almost 11 years ago:
The code starting at 'if(getX() == 17 && getY()==15)' is not within a method (your act method ends just above that line with the closing curly bracket).
807
808
809
810
811
812
813
X