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
missing something- not changing levels
By hoothoot, with 1 reply.
Replied to by danpost, almost 11 years ago:
Line 6 declares a method variable for LEVELCOUNT. It is not an instance field that will have scope beyond the execution of the method. That is, its value does not exist while the method is not executing and its value can be no more than one (from line 6) plus one (possibly from line 12) -- or two. Therefore, the 'prepare3' method of the SticksWorld class will never execute as the code is now.
danpost - Thank you!
By mik, with 3 replies.
Last reply by danpost, almost 11 years ago:
I am humbled to be honored in such fashion. I do not think the Greenfoot team has ever done anything like this in the past (or if they would ever again do so). My thanks to them both in the honoring and for the "little present" (whatever it may be). Best regards to all.
Keyboard Input
By joeenglish, with 10 replies.
Last reply by danpost, almost 11 years ago:
Oh, yeah. I had forgotten about the 'ask' method (I am using a slightly older version of greenfoot in which that method was not yet available in). One thing, however, is that you do not need to create an instance of the Greenfoot class to use the 'ask' method. In fact, all the methods in the Greenfoot class are static methods (you call the methods on the class itself): <Code Omitted>Another thing is that you never need to use a return statement at the end of a 'void' method. Now, your 'getInput' method will take the input value (as a String) an
What does this mean in psuedo code?
By sosimple, with 1 reply.
Replied to by danpost, almost 11 years ago:
What you gave in code only represents an int value. It is not a line of code in itself. It would be like these lines: <Code Omitted>To have it make more sense, let us assign the value to a variable: <Code Omitted>Now, for what it means. In code, it is equivalent to the following: <Code Omitted>In
Music issue
By Trunksssj4, with 5 replies.
Last reply by danpost, almost 11 years ago:
Trunksssj4 wrote...
Actually i'm beginner at coding, so i'm finding difficulties to find the right codes that fits my case :)), what codes do you recommend me to use Danpost?
It is impossible to say without seeing your current code related to the background music.
Eating another charectar
By MSK, with 2 replies.
Last reply by MSK, almost 11 years ago:
Thank you for the help I should be able to hand in my assessment on time! :D
Changing worlds in a series layout
By jalaw02, with 6 replies.
Last reply by jalaw02, almost 11 years ago:
Thank you. Sorted that one out!
How to insert a link?
By Vellyxenya, with 9 replies.
Last reply by Vellyxenya, almost 11 years ago:
Ok I checked out the storage file, did many tests and found out how it works, thank you very much!
Need help with random spawning for object.
By qpommer0, with 15 replies.
Last reply by Super_Hippo, almost 11 years ago:
Create a new discussion thread.
getting an error java.util.ArrayList cannot be cast to Bar
By hoothoot, with 2 replies.
Last reply by hoothoot, almost 11 years ago:
oh yeah,i just forgot that last part. I knew it, just forgot to type it. thanks.
creeps movement
By sosimple, with 3 replies.
Last reply by danpost, almost 11 years ago:
sosimple wrote...
Can you tell me what the getmemory() int is? Like what's that number actually representing?
It can represent whatever you want it to represent (provided what you want to represent can be expressed in an 'int' form).
reversed numbers
By divinity, with 5 replies.
Last reply by danpost, almost 11 years ago:
divinity wrote...
okay so it i back to the drawing boad for me, how do i get it to do what i want it to do
Why back to the drawing board? ... just change the parameters of the 'System.out.println' commands to print what you need them to.
Game Stops after actor touches another actor
By babis95, with 1 reply.
Replied to by danpost, almost 11 years ago:
First, you are not showing the code you are using (at least the method where you tried 'isTouching'). Then, you did not indicate how your walls are created -- whether they are Actor objects or drawn onto the background image of the World object.
if this OR that?
By TheSilverWaters, with 1 reply.
Replied to by danpost, almost 11 years ago:
There is an OR operator in java. It is double bar symbol ( '||' ). It would be more readable using the 'instanceof' keyword instead of comparing classes: <Code Omitted>However, if all worlds the actor could be in leads to world1, then there is no reason to even ask. And, if you did not want a new world1 created if the actor was already in a world1 world, then the condition would be that the actor is not in world1: <Code Omitted>
Is 3.0.2 broken on Mac?
By adagio_burner, with 5 replies.
Last reply by davmac, almost 11 years ago:
I presume that something went wrong with 3.0.2 and perhaps we will see it fixed soon
Indeed! Mac version 3.0.2a is now available from the
download page
. Sorry for the inconvenience.
509
510
511
512
513
514
515
X