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
Installing Troubles
By avgvstvs, with 2 replies.
Last reply by avgvstvs, almost 13 years ago:
nccb: Thanks a lot! I've been very busy so I'm just reading your post - thanks again!!! - and I might take a while to check your directions, but I'll tell you what I get by trying, and some actions I've already run by myself. I'll keep in touch. P. S.: Did I already say thanks?
Help with getting animal to goHome after something is done
By keiko1dog, with 1 reply.
Replied to by danpost, almost 13 years ago:
Tell yourself exactly what you want the actor to do, and half the code is already there. Say: If see food, eat food. if ate foot, migrate home. if home, wait2seconds. if none of the above, move around. What do we have?<Code Omitted>I used two instance va
Non accessible variable
By kiarocks, with 10 replies.
Last reply by danpost, almost 13 years ago:
Try this: <Code Omitted>
Little Crab programming
By BCC, with 4 replies.
Last reply by ez4u2c, almost 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, almost 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, almost 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, almost 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, almost 13 years ago:
ok!
Different Actions, Different Worlds.
By kiarocks, with 2 replies.
Last reply by kiarocks, almost 13 years ago:
ahhh, thats what i wanted. Thanks!!
Creating Random Objects
By GeneralBrae, with 7 replies.
Last reply by GeneralBrae, almost 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, almost 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, almost 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, almost 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, almost 13 years ago:
check out the new sling shot version.
Help with "mouseClicked()"
By wzl19920913, with 16 replies.
Last reply by danpost, almost 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:
1029
1030
1031
1032
1033
1034
1035
X