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
downloading problem
By winkleden, with 6 replies.
Last reply by davmac, almost 13 years ago:
If the option to "open in Greenfoot" does not appear on a scenario, it's because the "include source" option was not selected when the scenario was last uploaded. (As much as you think you did select it, if the option to "open in Greenfoot" doesn't appear, it means you didn't select the option).
Remove object code
By chelle526, with 3 replies.
Last reply by kiarocks, almost 13 years ago:
Actually, that is a mistake I make whenever I type getWorld(). I need to double check code.*facepalm*
Call a tryTo()method
By chelle526, with 1 reply.
Replied to by mjrb4, almost 13 years ago:
Sorry but you need to put much more detail here before you get a coherent answer to this - what do you mean by "something is found"? An actor bumps into another type of actor? A type of actor is placed in the world? Something else entirely? And as for the correct code to call in this situation that depends entirely on what you want to do! Again it could be anything, and without knowing exactly what you're trying to achieve we can't help.
Gamepad Lib and Exporting
By rvevea, with no replies.
Curious if anyone has had any recent success with an export that works implementing the GamePad and Direction libs (http://www.greenfoot.org/doc/gamepad). I've attempted just about everything I can think of and haven't been able to produce a working stand alone .jar file. My scenario works fine from within greenfoot, but once I export I get a window that produces only a run and reset button.
Diagonal
By Steve_888, with 7 replies.
Last reply by kiarocks, almost 13 years ago:
maybe you want Greenfoot.delay(int)
Get number from another object
By Gazzzah, with 4 replies.
Last reply by Gazzzah, almost 13 years ago:
Morran wrote...
Or, you could have it work off of a parent system. In the Base class, you could have "private Turret myTurret;"(an instance variable), and then in Base's "act()" method, it would update "myTurret" 's position.
The MyTurret sounds like the right option, seems more reliable and logical. How might I go about doing that in code?
Problem with editing posts.
By kiarocks, with no replies.
When i tried to edit my post, it deleted the post after me updating it. It also kept saying the site did not exist.
.png images for project
By ajnab26, with 2 replies.
Last reply by ajnab26, almost 13 years ago:
Thanks anyway
Accesing variable from another object
By Yasuf, with 13 replies.
Last reply by Yasuf, almost 13 years ago:
Man ur great :D My mistake is so dumb I even won't try to comment it thank you everyone now its running :D
Problem accessing methods from a List
By mal, with 4 replies.
Last reply by mal, almost 13 years ago:
Ah right, that makes sense. Thank you!
Setting the Initial starting world or a scenario
By rvevea, with 2 replies.
Last reply by davmac, almost 13 years ago:
Or, just instantiate the world class which you want to be the first world interactively, by right-clicking the class and calling the constructor. No need to go editing text files :)
NEED HELP!!!
By jeffsboosted18t, with 1 reply.
Replied to by davmac, almost 13 years ago:
Starting with 3., what have you tried so far? Is it that you have no idea how to proceed at all, or have you tried something unsuccessfully?
In need of code to make the screen scroll.
By carterfootball, with 6 replies.
Last reply by mal, almost 13 years ago:
We have since looked at having a sequence of images that are added just before they are due to appear on screen and then removed once they pass off the other side of the screen. You can cycle through an array of smaller images continuously that way.
move() up?
By ardwennem2, with 2 replies.
Last reply by ardwennem2, almost 13 years ago:
yes... thought a little too late of that -.- thanx anyway
Randombackground color
By Scaldren, with 1 reply.
Replied to by bourne, almost 13 years ago:
Then create an image filled with a random Color. You could try (note you would need to have "import java.awt.Color;") <Code Omitted> Or if you want a select few Colors to randomly pick from: (note you would need to have "import java.awt.Color;" AND "import java.util.*;")
1022
1023
1024
1025
1026
1027
1028
X