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
need help figuring out how to move my actor at a get random speed
By kyles247, with 11 replies.
Last reply by kyles247, over 10 years ago:
Ok thanks i will try to also add to this code. Thanks for all the help
Counters
By sophiaking, with 1 reply.
Replied to by fejfo, over 10 years ago:
I don't understand what u want please show some code
setImage doesn't work
By 2leftfeet, with 2 replies.
Last reply by 2leftfeet, over 10 years ago:
dan the man. i had a 2nd occurrence in the world like you said. fixed!
health help!
By Moho, with 14 replies.
Last reply by danpost, over 10 years ago:
Moho wrote...
i had eat and i also tried getWorld().removeObject(Heart.class); but it that one doesnt work...
Like I said before, the 'eat' method is not going to do what you want because it looks for intersectors , not just objects in the world. And, of course 'getWorld().removeObject(Heart.class)' will not work because the 'removeObject' method requires an Actor object, not a class.
i also tried getWorld().Heart.removeSelf(); but that doesnt work either and yes it is currently set as eat
I do not know why you tried that! Looks to me like you are throwing things to
can someone tell me have i done something wrong
By SAMAD101, with 3 replies.
Last reply by danpost, over 10 years ago:
Please do not start multiple discussion threads on the same issue. And please use 'code' tags for posting codes (refer to the 'Posting code? read this!' link below the reply box). Please refer to
this
discussion thread about this issue.
when it compiling it say cannot find symbol
By SAMAD101, with 4 replies.
Last reply by danpost, over 10 years ago:
SAMAD101 wrote...
can you tell me where i have gone wrong
No -- as you only gave a condensed version of the error message you received. (for one thing)
hello
By SAMAD101, with 1 reply.
Replied to by danpost, over 10 years ago:
Please do not start useless discussion threads. In other words, only start one if you have a legitimate programming issue or other question. And when you do, please include any information that may be helpful in resolving your issue.
It compiles with no errors, then it doesn't do its purpose D:
By Slug, with 10 replies.
Last reply by danpost, over 10 years ago:
You might want to show what you found for others to see. However, the following should be sufficient: <Code Omitted>
Question: Move mushroom for a beforehand specified distance
By Yavelee, with 2 replies.
Last reply by Yavelee, over 10 years ago:
it worked! thank you so much :-)
Is it just me, or have all java applets been rendered unusable?
By Datanaut, with 1 reply.
Replied to by lordhershey, over 10 years ago:
Can you add your site to the list as well? Are you trying to run applets locally by opening a web page on your local machine?
software problems
By Etienne, with 1 reply.
Replied to by Etienne, over 10 years ago:
I found the Problem. My type size was 14.But i can see them with some other sizes.
I need help with car game.
By david12, with 1 reply.
Replied to by danpost, over 10 years ago:
Line 28 in your world subclass above is what is setting the rate of production of vehicles. Using 'Math.random()*5', the average value would be two. That means you will produce on average one car every other act cycle. At normal scenario speeds of between 50 and 60 cycles per second, you would be creating 25 to 30 cars per second, on average. Change the '5' to a much larger value. You can also add a constant value to it (for example: 'Math.random()*60+25').
Need help with slowing down animation
By Cathy3210, with 2 replies.
Last reply by Cathy3210, over 10 years ago:
Thank you very much! :)
Need help with variable ;) Error at line 13 (incompatible types)
By xobookx, with 2 replies.
Last reply by davmac, over 10 years ago:
Or if you want help here, explain what it is that you want that line of code to do.
Need help with getrandomnumber (Problem in line 17 to 20)
By xobookx, with 2 replies.
Last reply by danpost, over 10 years ago:
First, the value of the parameter of 'getRandomNumber' must be a positive number. I do not see where 's' nor 'l' are set to any value other than zero. Second, only the values of 's' and 'l' are taken when used as part or all of a parameter expression. Finally, and I think this goes along with the previous statement, using 'getRandomNumber' returns a value that must be used either in an expression or assigned to a variable to be used later; otherwise, the value is immediately lost. In other words, lines 17 and 18 do absolutely nothing above, even if the value of 's' or 'l' was a positive n
591
592
593
594
595
596
597
X