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
keep getting an error message
By michelman, with 23 replies.
Last reply by michelman, almost 13 years ago:
thanks! I did what you said and it now works. changed the getOneIntersectingObject method to the getOneObjectAtOffset method.
How to make something circle?
By kiarocks, with 8 replies.
Last reply by mik, almost 13 years ago:
To answer your first question: You could use turnTowards and then turn(90). You would always move at a tangent...
mouse click question
By Tomc84, with 9 replies.
Last reply by mik, almost 13 years ago:
A similar thing (changing the image by rotating through a set of different images) is explained in the
Joy Of Code, Episode 17
(towards the end). However, there it uses an if-statement instead of the modulo operator (%). The modulo operator is a little more elegant, using an if statement is (initially) easier to understand. The bit about changing images starts around 16:40.
Creating custom GIFs for Greenfoot??
By NJoson, with 17 replies.
Last reply by NJoson, almost 13 years ago:
I agree with Morran. I like the interface of Gimp but learning to navigate through it can be hassle.
greenfoot
By malre, with 1 reply.
Replied to by Morran, almost 13 years ago:
Greenfoot is very easy to learn. It is a good application. It is used by people learning computer programming. It is also used to make serious games. For example,
Biomechanoid Chicken
,
Nightmare: Emergence
, and
RockSmash
. Look around this website to see what Greenfoot can do.
Moving enemies towards hero
By sst0005, with 3 replies.
Last reply by danpost, almost 13 years ago:
The possibilities are endless! (I always wanted to say that)
Can't seem to get around this.
By nfinch1992, with 4 replies.
Last reply by nfinch1992, almost 13 years ago:
i think that makes sense... i have seen this enacted in the program i made. So this does make some sense.
help quickly please
By helpme, with 3 replies.
Last reply by Morran, almost 13 years ago:
Your Ball class only accepts one Counter for each Ball created. You gave one Ball 2 Counters in your PongWorld. Unless you want to have two different Balls for each Counter, you need to have your Ball class accept 2 Counters. It's not too hard, maybe something like this:
Timer that continues through different worlds
By freddekl, with 8 replies.
Last reply by freddekl, almost 13 years ago:
Hey again, must say thanks for your help, but I have one final question. On the final level, I want the timer to stop and display the time as soon as the Actor reaches the world so I would have text in the background that says -------- Your Time: # (the # being the final time) How do i display a stopped final time as soon as it reaches the level?
Jar file World size issue
By danpost, with 3 replies.
Last reply by danpost, almost 13 years ago:
NVM, I was the peculiar thing. I just figured something out.
Greeps discussions
By billcoke, with 1 reply.
Replied to by davmac, almost 13 years ago:
We generally do remove Greeps code, yes. The nature of Greeps is such that it's best if students try things for themselves, so I have removed discussions and uploaded scenarios in the past (with the scenarios, I usually just ask the uploader to remove them).
Calling a variable from another class.
By Sneaky4296, with 3 replies.
Last reply by Sneaky4296, almost 13 years ago:
Thank you!
Animation in Greenfoot...
By NJoson, with no replies.
Okay so I wrote a set of code that runs like the Rock Paper Scissors Lizard Spock (yes, from the Big Bang Theory) in Eclipse. I was wondering if there was a way to create animation in greenfoot so that it does the actions (such as the scissors cutting the paper). Also what is the best way to create image files so that I can control their size and color when using them in my program. In my experience, the images provided by greenfoot are often too large or unproportional.
Reading and Writing to File
By Omniscience, with 22 replies.
Last reply by danpost, almost 13 years ago:
To learn about 'a lot of stuff' (or just substrings) go to
the java language tutorials
. Select 'Numbers and String' then 'Strings' or 'Manipulating Strings'.
question
By Michionlion, with 1 reply.
Replied to by Michionlion, almost 13 years ago:
oh... i think i got it. it returns a List no matter what, but the list is empty if nothing is intersecting it. is there a way to turn an empty list into 'null' or 'false'? there is.... List.isEmpty() will return true if the list is empty.... ok, got it ;)
993
994
995
996
997
998
999
X