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
Getting My Character To Flip 360 Degrees
By metaleddie13, with 17 replies.
Last reply by metaleddie13, almost 15 years ago:
Yep that was the problem, I knew it was something small and easy. I really appreciate it. Now if I can only figure out what's wrong with my output for the character and why Greenfoot.playsound is not working.
General Game Structure/Sound help
By Stryker, with 9 replies.
Last reply by davmac, almost 15 years ago:
There really shouldn't be a difference - I don't understand why the second version of MainMenu would work if the first one didn't. If you upload the entire scenario I'll have a look.
Now here's a challenge...
By mik, with 81 replies.
Last reply by kiarocks, almost 15 years ago:
ok!
Different Actions, Different Worlds.
By kiarocks, with 2 replies.
Last reply by kiarocks, almost 15 years ago:
ahhh, thats what i wanted. Thanks!!
Creating Random Objects
By GeneralBrae, with 7 replies.
Last reply by GeneralBrae, almost 15 years ago:
Thanks that solves it. Is there a way to empty data at a specific index from an array? Thanks again. This is hugely helpful.
Need help making a movement array
By UMike, with 7 replies.
Last reply by UMike, almost 15 years ago:
Actually, I got help from my professor today and she suggested that I adding this to my code and it worked: Constructor: this.xCoordinate= new int; this.yCoordinate= new int ; method array: { int currentX = getX( ); this.xCoordinate = currentX + Greenfoot.getRandomNumber (550-currentX); this.xCoordinate = currentX + Greenfoot.getRandomNumber (550-currentX); this.xCoordinate = currentX + Greenfoot.getRandomNumber (550-currentX); this.xCoordinate = currentX + Greenfoot.getRandomNumber (550-currentX); this.xCoordinate = currentX + Greenfoot.getRandomNumber (550
help with clicking an overlapped object
By completelyrubbish, with 1 reply.
Replied to by danpost, almost 15 years ago:
The easiest way to solve this is to look for a click on the arrow instead of the chess. By the way, this also allows movement to square without a chess on it. If you just wanted to select a different chess and show arrows around it, you could have it so if you click anywhere except on an arrow, the arrows are removed, and if that click was on a different chess, show the arrows around it (if the click was not on a chess, no arrows will be present, and you can then click on any chess).
Public Variables
By GeneralBrae, with 5 replies.
Last reply by danpost, almost 15 years ago:
Use two sets of square brackets instead of one private int coords = { { x1, y1 } { x2, y2 } { x3, y3 } ... }
IllegalStateException problem
By kiarocks, with 4 replies.
Last reply by kiarocks, almost 15 years ago:
check out the new sling shot version.
Help with "mouseClicked()"
By wzl19920913, with 16 replies.
Last reply by danpost, almost 15 years ago:
To achieve the following: if clicked and not flipped, flip; if clicked and flipped, select; and if selected and keystroke found, move; Use the following:
Health Points
By DMCGames, with 4 replies.
Last reply by DMCGames, almost 15 years ago:
Thank you it help me a lot.
Possible start() Bug in 2.1.2 Windows build
By ez4u2c, with no replies.
I have noticed that if I add "Greenfoot.start();" to the world constructor (last statement), it works once after compile, but after clicking "Reset" the pause button flashes continuously. This problem does *not* seem to be manifest in the stand-alone build and I haven't tried the pure-java build yet. It also does not seem to be an issue for the previous 2.1.0 Windows build. You can observe this behaviour with the basic wombats scenario by adding the Greenfoot.start() statement in the WombatWorld constructor.
Creating a Rectangle
By ChrisIsOsmer, with 5 replies.
Last reply by actinium, almost 15 years ago:
There is a fill() method that requires no parameters. <Code Omitted>
How to get and use Actors from an Array list..
By nikko, with 7 replies.
Last reply by danpost, almost 15 years ago:
I understand, you need both references to 'trailing' and 'leading' segments in each segment (except null for 'trailing' in last segment and null for 'leading' in first segment). Very good. I wrote a quick random movement snake program, nothing but the snake moving around the screen randomly; except that you can click on a segment and split the snake into separate snakes. Interesting :/
How do I make the Screen go one step down?
By Kujamaster, with 2 replies.
Last reply by GameCode, almost 15 years ago:
*make all your Actor-Subclasses go UP
1038
1039
1040
1041
1042
1043
1044
X