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 Chrome game?
By Kuhaku, with no replies.
i have some object, but i don't know how to make my object when isKeyDown("up") , this object jump and wait a few second after that this object back to start position
Gaussian Blur Image
By ironphoenix20, with 8 replies.
Last reply by danpost, over 9 years ago:
ironphoenix20 wrote...
so, the array i pass in is basically my pixel and other surrounding pixels. how large should i make it then?
No. The array is a set of values that give transform weight to the color of each pixel within a small area of your image. The matrix is used for each pixel within the image. As a test you could do something simple, like the following: <Code Omitted>Test it with 'i<1' in line 2 to start. Then increase the '1' to '2' and then to
hi, for some reason this code isnt doing exatly what i want
By S77, with 17 replies.
Last reply by Yehuda, over 9 years ago:
danpost wrote...
S77 wrote...
hmmm it seems to keeps saying cant find symbol for .mirrrorVertically();
Just a typo ... too many 'rrrrrrr's. Should be 'mirrorVertically()'.
You can see for yourself:
mirrorVertically
i need help making a gravity function for my new scroller game!
By S77, with 2 replies.
Last reply by danpost, over 9 years ago:
I usually use a 'vSpeed' or 'ySpeed' field for the vertical speed of the actors. This value is then used when moving the actor vertically: <Code Omitted>Gravity is a constant force that always adds to the vertical speed of the actor, which slows down the actor when rising and speeds it up when falling. So, adding a constant value to 'vSpeed' every act cycle will effectively add a gravitational-like force to the actor. Any time a "solid" object stops the actor from moving vertically, the value of 'vSpeed' should be zeroed. If this happens while the 'vSpe
Help with pacman ghost AI
By beastonion, with 2 replies.
Last reply by beastonion, over 9 years ago:
danpost wrote...
The Pacman is supposed to run into walls .. not you. The 'getOneObjectAtOffset' method uses offset values, not absolute coordinate values in its parameters. Remove all 'getX()' and 'getY()' from between the parenthesis of the method calls. That is, lines 2 through 5 should be: <Code Omitted>You may need to use a larger value than '2' as the o
Make actor disappear upon hitting a Wall.class
By wowi132, with 10 replies.
Last reply by wowi132, over 9 years ago:
Thank you, that solved it for me :)
Actor disappear upon hitting world edge error?
By wowi132, with 2 replies.
Last reply by wowi132, over 9 years ago:
Thank you very much, it is solved now :)
Greenfoot Freezing
By 123kevyd, with 1 reply.
Replied to by davmac, over 9 years ago:
See the information on
getting technical support
. Amongst other questions you'll need to answer are Greenfoot version, operating system and version, contents of debug log.
Image Manipulation New
By danpost, with 13 replies.
Last reply by danpost, over 9 years ago:
ironphoenix20 wrote...
I can do this to create a new world each time I need to use the turn90() method?
Experiment with it.
Can anyone see my Mistake, why doesn't it work?
By Unknown6415, with 19 replies.
Last reply by danpost, over 9 years ago:
Unknown6415 wrote...
And how can other classes acces to the time of the gunner? until now I did it with Gunner.time1 becuase the time was public static int but now it doesn't work that way
The Gunner class is an extension of the Attacker class. Every object from any class that extends the Attacker class will get their own instance of any non-private, non-static field declared in the Attacker class. They even get the private ones; but do not have direct access to those fields.
DefaultListModel
By Yehuda, with 13 replies.
Last reply by Yehuda, over 9 years ago:
This can (also) use some assistance.
Yehuda wrote...
With that coding the image is always on the left side of the element. Is there a way for me to specify where in the element it's placed?
how do i make that if its a certain score it adds an object
By makpatel123, with 1 reply.
Replied to by danpost, over 9 years ago:
makpatel123 wrote...
how do i make that
if its a certain score it adds an object
You practically stated exactly what the code would say. You may need to add another condition so that you do not repeatedly add objects while the score sets at that value.
How do I get a actor to respawn after it disappears
By makpatel123, with 2 replies.
Last reply by makpatel123, over 9 years ago:
thank you
How add button level to world selectlevel
By iban, with 4 replies.
Last reply by danpost, over 9 years ago:
iban wrote...
you can see my project .. pleaseee,, you must download my project and you see the button, i want add the button level to world selectlevel. please mr.danspot
Create an actor for the button. Have the world create and add a button to itself.
How do I delete Parts of a GreenfootImage?
By Benni, with 2 replies.
Last reply by Busch2207, over 9 years ago:
Hey! In this case you have to work with Non-Greenfoot-Classes (AlphaComposite, Graphics2D and Rectangle). You can use this: (I also added a 'reset'-method in case you want to be able to reset the black screen)
355
356
357
358
359
360
361
X