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
Drop ball then turn at edge of world randomly
By Tomc84, with 1 reply.
Replied to by Morran, about 13 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 13 years ago:
Thanks ! img.setTransparency is a really good code!
OR sign
By Richkeys, with 2 replies.
Last reply by Richkeys, about 13 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 13 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 13 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 13 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 13 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 13 years ago:
@Morran Matrix :D. <<Uneducated mind
Error: cannot find symbol- variable image 1
By sophiasturges, with 3 replies.
Last reply by sophiasturges, about 13 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 13 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 13 years ago:
Thanks, worked great!
Chapter 5 abstraction Building the piano
By sophiasturges, with 13 replies.
Last reply by sophiasturges, about 13 years ago:
@danpost & davmac: Your suggestion to addObject from the Piano world did work. :) Thanks!
Class, interface, or enum expected
By DMag, with 16 replies.
Last reply by danpost, about 13 years ago:
@Game/maniac, actually 'void' means that the method will not return anything. If it is 'boolean', the method is declared to return a true/false value. If it is 'String', the method is supposed to return a String value (or null). Basically, if the method is declared to return 'void', the method just does stuff and exits. But if it is not void, the method may or may not do some stuff and then, return an object of whatever type the method is declared to return.
What are fews way to learn how to code?
By MakerOfGames, with 2 replies.
Last reply by davmac, about 13 years ago:
The key is to ask for help when you need it. When you want to do something, have a think about how to do it and write what code you can - but if you get stuck, just post it on the gallery and ask for help. You can also look at other people's code, and try to figure out how it works. You can learn a lot that way!
1004
1005
1006
1007
1008
1009
1010
X