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 the lvls
By Stephon231, with 34 replies.
Last reply by davmac, over 12 years ago:
You could make it non-static, or you could reset it manually at an appropriate point.
Movement Angles Changing
By Mikeson, with 5 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
There are two different methods in Greenfoot for turning your actor. The first is setRotation(int angel): this method turns your actor to the absolute angel which means that if you write setRotation(0) your actor turns to 0 degrees (to the right). The second it turn(int angel): this method turns your actor to the relative angel of the actor which means if your actor has the rotation 90 and you now say turn(5) the rotation will be 95 and if you say turn(0) nothing will hapen. If you want your actor to go up when the upKey is pressed you could use this:
spiel erstellen
By Cocky, with 3 replies.
Last reply by groengeel, over 12 years ago:
erdelf wrote...
hier mit source http://www.greenfoot.org/scenarios/5847
That is Pong. Not Ping Pong. I think he means something like this: http://www.greenfoot.org/scenarios/3841
The world does not create, Unable to press "act", "play" or "reset"
By Stormtrooper299, with 6 replies.
Last reply by davmac, over 12 years ago:
Can we get a copy of your Greenfoot? We've only released 2.2.1 so far, if you have 2.2.2 already then it will save us a lot of development effort! :D
Scrolling Backgrounds + objects
By groengeel, with 7 replies.
Last reply by groengeel, over 12 years ago:
@MatheMagician: Thanks. I will see whether it helps. @zamoht: Thanks for sharing the problems you encountered. It helped! @SPower: Will try, it looks a lot simpler at first sight. I'll see which of the options help me better. Expect updates here ;-)
Convert coordinates
By erdelf, with 2 replies.
Last reply by erdelf, over 12 years ago:
thx, seems to work so far
help
By Stephon231, with 3 replies.
Last reply by danpost, over 12 years ago:
@Gevater_Tod4711, it is probably best to avoid the List class when dealing with those that are just starting off. It adds an extra layer of complexity. Easier would be: <Code Omitted>However, it would probably be even better to have a reference to the Wombat in an instance field in the world.
sound volume
By Stephon231, with 1 reply.
Replied to by mjrb4, over 12 years ago:
You want the GreenfootSound.setVolume() method as detailed here: http://www.greenfoot.org/files/javadoc/greenfoot/GreenfootSound.html#setVolume(int)
BufferedImage to GreenfootImage
By tylers, with 4 replies.
Last reply by mjrb4, over 12 years ago:
is there a way to get a BufferedImage to a GreenfootImage.
Of course. <Code Omitted> Simply create your new GreenfootImage with the same width / height as the BufferedImage, grab the
Fonts
By GregC246, with 5 replies.
Last reply by groengeel, over 12 years ago:
Cool!
Problem with getButton in MouseInfo
By SPower, with 2 replies.
Last reply by SPower, over 12 years ago:
Thanks.
counter help
By Stephon231, with 10 replies.
Last reply by danpost, over 12 years ago:
If you only have one Wombat in your scenario, then the Wombat class would be the best place to add, keep a reference to, and work the counter. <Code Omitted>
tutorial help
By Stephon231, with 8 replies.
Last reply by danpost, over 12 years ago:
Create an instance of your main world by right-clicking on the class icon on the right of the screen and selecting one of its constructors (begins with 'new' -- at the top of the options list). If there are none, you need to open the class to edit it and add a constructor to the class; then, go back to step one. By creating an instance of that world, you are setting the initial world to that world. Then, run the scenario.
Counter Class Error
By ManiHallam, with 8 replies.
Last reply by danpost, over 12 years ago:
@ManiHallam, have you checked out those posts?
Error
By Moritz, with 3 replies.
Last reply by Moritz, over 12 years ago:
@sPower - that´s the problem - there is a red line but I can´t click on it... =// @nccb - thank you .. I will try this...
940
941
942
943
944
945
946
X