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
Help ASAP!
By nitaadiningrum, with 3 replies.
Last reply by danpost, over 13 years ago:
You need to show some effort. Post some attempted code. You may want to browse the Java tutorials, especially the first two sections on
Learning the Java Language
.
Bars
By AD12, with 1 reply.
Replied to by danpost, over 13 years ago:
I posted a reply to this in my Progress bar/Health bar scenario comments.
Little Crab
By nitaadiningrum, with 1 reply.
Replied to by danpost, over 13 years ago:
Add an instance integer field to be a life counter in the world class. Initialize its value to 2. In the world act method (or a method it calls), check to see if Crab is in the world, if not, decrement the life counter and then check its value; if the value is not zero, add the crab back into the world; otherwise start a new instance of the world. You may prefer to add the same Crab object back into the world after the first life is gone because the field holding the number of worms eaten will be zero if you add a NEW Crab object into the world. To accomplish this, add an instance Crab fi
Counter counts down by one when tool is used.
By kaciedy, with 1 reply.
Replied to by danpost, over 13 years ago:
You need to track the state of the control key by adding an instance boolean field (I will call it controlDown). <Code Omitted>
hanldeOrbCollision
By CHERNANDEZ95, with 9 replies.
Last reply by CHERNANDEZ95, over 13 years ago:
Ok, I see what you are saying. Makes sense. Again, thank you for your patience and sharing your knowledge with me.
Score----How do I do it?
By Eli.A, with 3 replies.
Last reply by danpost, over 13 years ago:
tylers solution will work if you want to internally keep track of how many balloons have been popped. If you want to visibly display a running counter showing how many have been popped, you will need to create or import a Counter class, link it to the class that detects balloon popping and control it from there. NOTE: if only one counter object is going to be in your world, linking is not mandatory. The Counter class should be able to create and update the image (as the count changes) and have public method(s) to adjust the count value and to return the current value.
how to manually "Feed" an object
By CCLong2010, with 11 replies.
Last reply by danpost, over 13 years ago:
Please supply the code for you FriendlyCat class at this point.
Exercise 5.4/5.5 in Greenfoot - Making on-screen piano
By PBnJwFluff, with 2 replies.
Last reply by PBnJwFluff, over 13 years ago:
aaahhh okay thank you! I appreciate the help!!!
Boolean help
By Gingervitis, with 18 replies.
Last reply by Gingervitis, over 13 years ago:
I figured out my own question. Response not needed.
Can someone help me please, what's wrong with my Greenfoot download?
By DeepakT, with no replies.
My Greenfoot on window vista is not working properly. In headgehogs excercise, when I click in a feild it doesnt show, and when I bring apples to the wrold, it only shows small greenfoot symbol, I don't see any apple or headge hogs, and it does,nt show world as green. I can't figure out, I tried deleting and downloading agian . Can anyone of you Genius please help ! I have latest JDK 7 and latest Greenfoot version on Window Vista 7, its a laptop.
What the best program to create sprites.
By tylers, with 4 replies.
Last reply by tylers, over 13 years ago:
Upupzealot wrote...
Hi tylers. What do you mean by "create sprites". I think Greenfoot's Actor is very good. And you know, it's free for all use.
like the image for an actor.
mjrb4 wrote...
Paint.NET or Inkscape tend to be my first couple of choices.
im look at those now :D
try-with-resources not supported
By tylers, with 1 reply.
Replied to by mjrb4, over 13 years ago:
The "try()" shouldn't have the "()" after it.
Error: Void type not allowed here PLEASE HELP ME
By Eli.A, with 7 replies.
Last reply by danpost, over 13 years ago:
Yeah, I forgot to put the parenthesis after it -- getHeight().
how can I miss with this code?
By erdelf, with 8 replies.
Last reply by erdelf, over 13 years ago:
at the beginning, the Missiles Rotation is right, but the movement isnt. the movement is straightly changing in only one axis.
What am I doing wrong with this code?
By Gingervitis, with 4 replies.
Last reply by Gingervitis, over 13 years ago:
Thank you
882
883
884
885
886
887
888
X