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
Problem with a side
By JetLennit, with 2 replies.
Last reply by JetLennit, over 12 years ago:
Hadn't thought of directly making it a negative number with all the other ones........ but i can't believe i made that mistake!!!! Thank you sooo much
Set a counter for the points
By JesusJesus, with 2 replies.
Last reply by JesusJesus, over 12 years ago:
Thank you very much :D
How to use type boolean variable?
By new2programming, with 1 reply.
Replied to by davmac, over 12 years ago:
A boolean variable is just like any other variable (like an 'int' variable). Except whereas an int variable can hold a lot of different values - 0, 1, 2, 3, 1000, -1, etc - a boolean variable can only have two possible values, 'true' and 'false'. There's nothing magic about them otherwise - they work exactly as other variables do. Because the value of a boolean is already true or false, you don't need to compare them in 'if' statements, i.e. instead of writing: <Code Omitted> you can write: <Code Omitted>
I mean how
Setting the score through different worlds
By welleid, with 17 replies.
Last reply by welleid, over 12 years ago:
Thanks it works perfectly, I didn't think about setting the method in the subclass, meaning that we keep the same Score in fact.
Problem
By djEthen, with 2 replies.
Last reply by djEthen, over 12 years ago:
Ohk.. thanks will look into it.
problem using Greenfoot.mouseClicked(this)
By jainmanish, with 6 replies.
Last reply by jainmanish, over 12 years ago:
Greenfoot.mouseClicked(null) worked thank you very much @danpost
Scroll World trouble
By Draymothisk, with 1 reply.
Replied to by Draymothisk, over 12 years ago:
Never mind.. I fixed it.
Changing the uploaded size
By JetLennit, with 7 replies.
Last reply by FlyingRabidUnicornPig, over 12 years ago:
JetLennit wrote...
Oh... duh! *facepalm* i was just having problems in my browser!!! never mind
oh, well there you go
How to move on the y-axis
By OxiClean, with 6 replies.
Last reply by JetLennit, over 12 years ago:
Your welcome!
Hello Everyone Can you help Me???
By benjiedark, with 1 reply.
Replied to by davmac, over 12 years ago:
What's the codes to make the fish kill by another actor???
Please have a look at the tutorials (see the Documentation link) - check both the written tutorials and the "Joy of Code" videos.
and how it will end.
I guess it will end badly, for the fish. :(
non-repeating random number help
By ronzhi, with 26 replies.
Last reply by ronzhi, over 12 years ago:
Hi danpost,due to many things that i have to do i just fixed the question for certain number while still use your double array and JDialog loop but you've been really great help danpost thanks !
Stopping the scenario.....
By jennnnay24, with 20 replies.
Last reply by danpost, over 12 years ago:
isaunders7289 wrote...
How do you make the wombats face random directions when compiled in the world
First, simplify your 'setDirection' method to the following: <Code Omitted>Then, if you do not already have Wombat constructor in your code, add the following to the Wombat class: <Code Omitted>If you already had a Wombat constuctor, just append the 'setDi
Changing snake demo 2
By JetLennit, with 19 replies.
Last reply by danpost, over 12 years ago:
OK, I added the last statement in the following: <Code Omitted>
Mario HELP
By SWAG, with 9 replies.
Last reply by FlyingRabidUnicornPig, over 12 years ago:
Also, with your problem, did you make sure to start gravity with a negative number? Also, make sure that you increase the gravity. If you don't have a positive number, it won't fall. When it's negative, the fireball should rise. When positive, it should fall, until it hits the ground, and that's when it goes up again.
Need help having trouble to set the wombat initial leaves eaten to a random number from 1 - 17 and Currently, the wombats face EAST once placed in the world the wombat face a random direction as they are placed in the world
By infant17, with 7 replies.
Last reply by danpost, over 12 years ago:
Actually, with 'max' set at '17' and 'min set at '1', you would use <Code Omitted>
858
859
860
861
862
863
864
X