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
Non accessible variable
By kiarocks, with 10 replies.
Last reply by danpost, about 13 years ago:
Try this: <Code Omitted>
Little Crab programming
By BCC, with 4 replies.
Last reply by ez4u2c, about 13 years ago:
So have you declared frameNum or frame as your counter? (you didn't show the declaration)
Game question and Public Variables
By darkmist255, with 5 replies.
Last reply by darkmist255, about 13 years ago:
Yeah, but only 1 rock at a time. Here's the finished project (modified to more of a space-like thing).
Click here for game
Getting My Character To Flip 360 Degrees
By metaleddie13, with 17 replies.
Last reply by metaleddie13, about 13 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, about 13 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, about 13 years ago:
ok!
Different Actions, Different Worlds.
By kiarocks, with 2 replies.
Last reply by kiarocks, about 13 years ago:
ahhh, thats what i wanted. Thanks!!
Creating Random Objects
By GeneralBrae, with 7 replies.
Last reply by GeneralBrae, about 13 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, about 13 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, about 13 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, about 13 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, about 13 years ago:
check out the new sling shot version.
Help with "mouseClicked()"
By wzl19920913, with 16 replies.
Last reply by danpost, about 13 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, about 13 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.
1030
1031
1032
1033
1034
1035
1036
X