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
pokemon fighters
By Meira, with 2 replies.
Last reply by FlyingRabidUnicornPig, about 13 years ago:
Awesome. Although I prefer making pokemon fight until they faint, much more humane. Also, this topic should be under other, not programming.
On 'The Maze Factory' by danpost
By danpost, with no replies.
This is in response to a question in a comment on one of my scenarios. The code I used for the Timer class follows: <Code Omitted>The timer starts the moment the timer object is created and only has a 'stop' method. It can easily by complimented with methods like 'start', 'reset', 'getText', 'setText', 'getElapsedTime', etc. or modified to not start until the 'start' method (which needs added) is called.
getLocation
By mattjames, with 3 replies.
Last reply by SPower, about 13 years ago:
@danpost sorry, first I though that atbasecamp was his class name, but later I realised it's a method name and I didn't change my story :( Sorry.
setPaintOrder(class... c)
By Kartoffelbrot, with 6 replies.
Last reply by davmac, about 13 years ago:
Just to clarify: I'm not saying removing and re-adding actors is a bad suggestion in itself, just that you need to be aware of the potential issue with forwards compatibility.
how to make the asteroid fall in one way?
By mateenozil, with 5 replies.
Last reply by davmac, about 13 years ago:
As danpost says, you shouldn't choose a random X co-ordinate every time the asteroid acts; then it will jump around as it moves down. What you should do instead is to choose a random coordinate when you place the asteroid in the world (which is done in the world class, if I remember correctly).
Gumball machine problem
By anky689@gmail.com, with 3 replies.
Last reply by danpost, about 13 years ago:
Again, I would ask that you try to create some (hopefully) workable code to do what you want and if you encounter problems, post the code with an explanation. If you are not creating any code, you are probably not learning anything. If you are at a total loss, then you probably should review the methods that are available in the greenfoot package. If you are not familiar at all with the Java language, then you should probably consult the java tutorials -- especially the section on
Learning the Java Language
.
Sound
By dominicarrojado, with 3 replies.
Last reply by danpost, about 13 years ago:
It probably means you have information tags in the sound file that the GreenfootSound class does not account for (it does not account for any of them). Re-save the sound file without the information tags and it should run fine.
i messed up somewhere, need help with loops
By RUMMAKER, with 2 replies.
Last reply by RUMMAKER, about 13 years ago:
it does get out of the first loop :/ i found the error on line 43 where it sais i --; its suppose to be i2 --; i fixed that but the freezing still happens so evidently theres a bigger problem then a typo :/
Beginner! Just set up...already confused!
By katrinee123, with 3 replies.
Last reply by danpost, about 13 years ago:
Maybe
this discussion
might help.
Help with Changing the background when actor hits edge of world.
By DemonicButterflies, with 10 replies.
Last reply by DemonicButterflies, about 13 years ago:
Oh okay thank you
how to make it move forward?
By mateenozil, with 5 replies.
Last reply by mateenozil, about 13 years ago:
thanks for the reply mate :) I appreciate it.
Score won't reset when scenario is reset
By redninja21, with 7 replies.
Last reply by SPower, about 13 years ago:
@kira, please create a new discussion
reacting to sound/music
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, about 13 years ago:
Ok thank you. I think I have too less knowledge of Java to understand things like that now.
Null value Exception
By swap587, with 5 replies.
Last reply by Gevater_Tod4711, about 13 years ago:
@erdelf You should try not to call the same method two times if it's not neccessary. If you just check whether 'ins' is null you call the getOneObjectAtOffset method only one time which makes your code perform faster. Your code would also work and concerning the method getOneObjectAtOffset it wouldn't realy matter because the method has a very low runtime. But when you use methods with e.g. an exponential runtime it will mater.
Importing package
By Amenya, with 2 replies.
Last reply by Amenya, about 13 years ago:
I wanted to import javax.swing.* but I have already known how to go about it. thanx.
800
801
802
803
804
805
806
X