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
Changing colour of a fillRect(x1,y1,x2,y2)
By 8bitorangejuice, with 8 replies.
Last reply by 8bitorangejuice, over 11 years ago:
Oh and as for the question: I am using a static int :)
main menu + keeping the score. help!
By Icecold, with 7 replies.
Last reply by Skylander85, over 11 years ago:
thx
i need help uploading my scenario
By JayWood860, with 15 replies.
Last reply by davmac, over 11 years ago:
How did you fix it? If others have the same problem it will be useful for them to know.
How to erase previous drawn images?
By AceticAcid, with 5 replies.
Last reply by Zamoht, over 11 years ago:
Oh I didn't get that the whole thing was made in one GreenfootImage.
Methods with optional values?
By Entity1037, with 3 replies.
Last reply by Zamoht, over 11 years ago:
Sorry for my late answer. I guess you already found out but yes it is possible and it will work.
CHALLENGE 3 | June 2013
By FlyingRabidUnicornPig, with 59 replies.
Last reply by steved, over 11 years ago:
thanks
Getting one object of certain class via coordinates
By Segara, with 3 replies.
Last reply by danpost, over 11 years ago:
Segara wrote...
Well, as you saw in the code, I do create objects of A class, but don't save them anywhere.
I matters not whether you have saved them or not, or even whether you create and add them to the world or not. If the method does not find any objects of the given class whose image overlaps the location given, then the method will return null. It is the location that is important. If you place a Back object at location (8, 8), then using getX() (or getY()) in the back class will return 8 for that Back object. If you use 'getOneObjectAtOffset(4, 4, null)' for that Back objec
.JAR file in Java
By doughauf, with 3 replies.
Last reply by davmac, over 11 years ago:
If you install Greenfoot you will find various jar files in the installation. At least the main one, greenfoot.jar, will be necessary for building scenarios externally. You will not easily be able to run your scenarios from outside Greenfoot. That's about as much information as I can give you, as building scenarios outside of Greenfoot isn't something we really support. Someone else may be able to offer help.
How to upload a scenario??
By Kaiwalya, with 2 replies.
Last reply by danpost, over 11 years ago:
The 'Share' button near the top-right corner of the Greenfoot application frame initiates a dialog where the 'Publish' tab (at the top) is used to upload your scenario on the Greenfoot site. Just fill in the information, check the appropriate boxes and click on the 'Share' button.
scrolling
By Will_Taylor, with 1 reply.
Replied to by Gevater_Tod4711, over 11 years ago:
If you want a scrolling system for your game you can use a scrolling world demo like one of these:
Infinite Scrolling World
Scrolling SuperWorld
Shooting
By eddietheboss27, with 3 replies.
Last reply by RahulUK, over 11 years ago:
Thanks dude
Image manipulation
By Game/maniac, with 1 reply.
Replied to by danpost, over 11 years ago:
What precisely do you mean by 'map an image to a polygon'? And is this something you want to do programmatically (while the scenario is running) or is it something you want done for programming it?
Try our game? School Project
By dan95neva, with 6 replies.
Last reply by dan95neva, over 11 years ago:
Thanks
How to move after faced a certain direction
By lweave14, with 1 reply.
Replied to by Gevater_Tod4711, over 11 years ago:
The problem is that you use a string to check the rotation like in line 7 (I think in line 7 the "0" should be "90"). The problem is that rotation is an int and "0" is a string. And the check for string.equals(int) will always be false. If you just use: if (rotation == 0) { ... it should work. And in lines 5, 11, ... it would be a bit easyer to use: if (Greenfoot.isKeyDown("keyname")) { ... instead of comparing the current pressed key. But your solution also would work.
The permission to use some of the pictures from greenfoot as the cover of a thesis
By rowanto, with 3 replies.
Last reply by rowanto, over 11 years ago:
Yeah it's not for profit. Thanks :-)
803
804
805
806
807
808
809
X