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 to make scrolling enemies?
By Brantgarron, with 1 reply.
Replied to by Brantgarron, almost 9 years ago:
my world class
Help with Game Over Screen
By HelpMe123, with 3 replies.
Last reply by Super_Hippo, almost 9 years ago:
Line 18 alone removes all objects from the world.
How do I use a int variable from MyWorld in an Actor class
By Bonobo, with 2 replies.
Last reply by Bonobo, almost 9 years ago:
Alright. Thanks a lot :)
mouseDragged() help
By doglover555, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
The mouseDragged method requires an object, not a class. So for a start, replace 'Pet.class' with 'this'.
Trying to shoot randomly appearing enemy but get error
By Brantgarron, with 4 replies.
Last reply by Super_Hippo, almost 9 years ago:
You can have a variable used as a timer in your world. <Code Omitted>
How do I scale my picture
By doglover555, with 3 replies.
Last reply by Super_Hippo, almost 9 years ago:
Do you change the image in your act method? Or in other words, if you don't start the scenario and add a Puppy with right click on the class, is the image huge or 20x20? Are you sure it is compiled? Sometimes, when the auto-compile doesn't work anymore, you have to restart Greenfoot.
How do i make a flower respawn
By JD.Knox, with 5 replies.
Last reply by Super_Hippo, almost 9 years ago:
<Code Omitted> True, but it is quite complicated to remove the object and re-add it instead of simply change its location.
Something bad with this code?(Math.cos)
By Darkmauro, with 1 reply.
Replied to by danpost, almost 9 years ago:
I do not see where 'c' is declared as a variable. Also, I do not see where 'd' is used anywhere (although it might be used elsewhere).
how do I display a gameover screen if my actor falls below the last platform?
By Brantgarron, with 3 replies.
Last reply by danpost, almost 9 years ago:
Brantgarron wrote...
is there any more information I need to supply. What I am trying to do is have the game over be its own screen with nothing behind it displaying the score the user got
Well, you need to create a subclass of World for the game over screen; also, you will need to add the final score text to that world (either onto the background or by use of an actor). Easiest way to accomplish that is to break line 3 above into the following: <Code Omitted>so you can add the a
How to fill java.awt.geom shape in GreenfootImage?
By CubeGamer6, with 2 replies.
Last reply by CubeGamer6, almost 9 years ago:
danpost wrote...
Check out the 'fillPolygon' method of the GreenfootImage class.
Thanks for the reply, but i think in order for that to work, i need to be able to turn RoundRectangle2d.Float into arrays of x and y coördinates. The RoundRectangle2D.Float class doesn't have this. I have however found a way to fill it in though. All i needed to do was add ovals to the 4 corners and add two squares in a cross pattern.
The World constructor threw an exception. See the Terminal window for more details
By Brantgarron, with 3 replies.
Last reply by Super_Hippo, almost 9 years ago:
Apparently it doesn't find an image with the name 'title.png' (line 1 in the terminal window). Make sure an image with exactly that name exists in the image folder of your project.
I want to make a greenfoot game. Need help!
By frequency, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
Create an act method in your world subclass. Increase or decrease a variable (used as a timer) in the act method and whenever it hits a defined number, spawn a new Enemy and reset the timer.
Unable to find my Image file even though it is written correctly.
By Aristoclea, with 1 reply.
Replied to by danpost, almost 9 years ago:
Aristoclea wrote...
Im trying to animate the aliens of space invader, but the terminal window keeps popping up that it is unable to find the second image file.
Show how you wrote it. Verify that the file name matches correctly with what you wrote (case-sensitive) and is located in the proper directory folder.
Is there a way to switch an image of the actor if it gets to a certain coordinate?
By mouseofgory, with 3 replies.
Last reply by danpost, almost 9 years ago:
mouseofgory wrote...
I did try that but I don't know how to assemble the sentence, because y is an integer is it not? And the if statement is a boolean.
See
here
.
Respawn enemies
By tstockun, with 2 replies.
Last reply by tstockun, almost 9 years ago:
It runs now. Thanks!
311
312
313
314
315
316
317
X