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
support class - counter
By craigv, with 1 reply.
Replied to by davmac, about 14 years ago:
First have a look at the methods available in the Counter class. It should be fairly obvious which methods you need to call to change the score. Then, when your program detects an event which should cause an increase in the score, call the appropriate Counter method. Have a look at
this tutorial
for general help with calling the counter methods from some other class. The tutorial doesn't use the Counter support class, but the principles are the same.
Cutting Images
By kiarocks, with 16 replies.
Last reply by kiarocks, about 14 years ago:
Ok, that will be useful
Drop ball then turn at edge of world randomly
By Tomc84, with 1 reply.
Replied to by Morran, about 14 years ago:
You want the ball to
turn
, and not
rotate
? You are using the "setLocation(int newX, int newY)" method to move your ball. setLocation() moves your ball in an absolute way. It doesn't care which direction your ball is facing in, it will still move it in the same way. I think that what you want is the "move()" method, which is in the "Animal" class I think. Just make Ball extend Animal instead of Actor, and use "move()" instead of "setLocation()". I hope this helps!
how to creat footprint?
By aliso, with 3 replies.
Last reply by aliso, about 14 years ago:
Thanks ! img.setTransparency is a really good code!
OR sign
By Richkeys, with 2 replies.
Last reply by Richkeys, about 14 years ago:
Thanks Morran ...I think my keyboard must be very different! However I found that the key to the left of the "Z" works (eg Shift +\) it shows as a dotted line on the keyboard but produces "|" (apparently its called a "pipe"! Rich
How do I access a method from the World?
By DMCGames, with 1 reply.
Replied to by Morran, about 14 years ago:
What is the name of your World class? Is it "MyWorld"? "CrabWorld"? Your method in the World class is probably actually in the World's subclass. Try this(assuming that MyWorld is the name of your World): <Code Omitted>
Class parameters
By Gazzzah, with 3 replies.
Last reply by Gazzzah, about 14 years ago:
YES! That's what I was after. Thanks again danpost, you forum ninja :D
Image
By citadel, with 3 replies.
Last reply by citadel, about 14 years ago:
Yes I just need the image. Thank you both very much!!!
Professional content?
By THELAWL, with 1 reply.
Replied to by Morran, about 14 years ago:
Greenfoot is actually just meant to be a stepping stone. However, you can do a lot more with it than I think the developers meant. Your games can look quite good, just look at
Nightmare: Emergence
,
Chicken
, or my favorite,
RockSmash
. It just depends on how much work you want to put into your game. Most of the people on here are just using Greenfoot as a learning tool. They don't intend to sell or distribute their games.
Learning Mathematics in Greenfoot
By nccb, with 6 replies.
Last reply by darkmist255, about 14 years ago:
@Morran Matrix :D. <<Uneducated mind
Error: cannot find symbol- variable image 1
By sophiasturges, with 3 replies.
Last reply by sophiasturges, about 14 years ago:
Thank you danpost for the detailed reply. I really appreciate it! @builderboy2005--thanks for pointing that out. Sophie
No option to execute
By GEMOIRE, with no replies.
Does anybody know why I only have the read option on my Greenfoot download?Which version has the wombats and leaves scenarios at download?
I need help on how to get code.
By MakerOfGames, with 4 replies.
Last reply by danpost, about 14 years ago:
The Greenfoot and Java APIs contain methods that can be used in your code. The code itself is the basic Java language; and how you put your java language statements together is the artform that creates the code. The methods found in the Greenfoot and Java APIs are there because those methods (or groups of methods) are commonly used and you do not have to re-write them to apply them in your code. Yes, the Java API documentation is quite extensive and can be very confusing, but there are also tutorials (trails) you can follow to acquire a better insight on how much of it can be used. Check o
Possible Drawing in World?
By shahmeer, with 2 replies.
Last reply by shahmeer, about 14 years ago:
Thanks, worked great!
Chapter 5 abstraction Building the piano
By sophiasturges, with 13 replies.
Last reply by sophiasturges, about 14 years ago:
@danpost & davmac: Your suggestion to addObject from the Piano world did work. :) Thanks!
1008
1009
1010
1011
1012
1013
1014
X