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
Null Pointer Exception Error
By Tommy99, with 6 replies.
Last reply by Tommy99, almost 12 years ago:
Oh, okay. It worked perfectly! Thank you both very much!
Pausing movement when there's one equal actor.
By joandvgv, with 112 replies.
Last reply by joandvgv6, almost 12 years ago:
Wow. Thank you so much for those explanations. Really really helped, since this is my first time programming in Java and I decided to use greenfoot, there are a lot of things that are a bit difficult to understand like reference fields and so, now I understand more about this stuff.
joandvgv wrote...
Take a look at my scenario
I don't want that to happen. What do you suggest? The thing about 180 rotation when its sense is up all over the scenario works. But when its sense is down, it does not. What do I need to change?
This is what I previously p
My program was working, and all of a sudden it slowed down and gave me Java heap space errors.
By nbarrell, with 3 replies.
Last reply by fejfo, almost 12 years ago:
if your reading from fillies make sure u close the as well!
problem with good gravity/collision detection
By fejfo, with 3 replies.
Last reply by fejfo, almost 12 years ago:
thanks!
Can you help me Encrypt and Decrypt text like Caesar Cipher
By coder04, with 41 replies.
Last reply by coder04, almost 12 years ago:
t
Help with Blackjack game
By 1920, with 1 reply.
Replied to by danpost, almost 12 years ago:
Write an outline of the events that are to take place. Then build your act method of the world based on that outline. Do not worry about what code needs to go in supporting methods for now. Just work on the act method calling methods that are to do certain actions. For example:
Where do I get the main class?
By joandvgv, with 6 replies.
Last reply by joandvgv, almost 12 years ago:
Ok then, I'll try that. Seems like it's going to work, because the other tool (Jar2Exe) got the main class inmedeately when I upload the .jar
Help with bullet rotation after shot....
By Hnkzx, with 9 replies.
Last reply by danpost, almost 12 years ago:
You did not do the final step as far as what I suggested you do (you are missing the follow-up to lines 24 and 25).
danpost wrote...
First, remove lines 5 and 6 from the Bullet class code. Then replace line 24 of the Rocket class with the following: <Code Omitted>By splitting up the line you had, we now have a reference to the bullet in the 'bullet' variable.
Now, follow that with the following
line: <Code Omitted>And you are done (at least with the rotation of the bull
Is there anyway I can get my project's classpath?
By joandvgv, with 1 reply.
Replied to by danpost, almost 12 years ago:
Wikipedia has a page on 'Classpath -- (Java)' (or something like that).
Hearthstone Clone - How to Add Images?
By ProfessionalNoob, with 2 replies.
Last reply by danpost, almost 12 years ago:
Chances are you will be moving or removing the image after some time. Hence, drawing the image on the background of the world would not be advisable. Create a 'Card' class (have it extend the Actor class); create an instance of the class and set the image to the object; then, add the object (actor/card instance) into the world at the desired location.
Help with steganography
By PCMasterRace, with 1 reply.
Replied to by danpost, almost 12 years ago:
Refer to these places: (1)
Steganography
(2)
Normalization
(3)
Bitwise and Bit Shift Operators
Background Music Help?
By shooterbooth, with 1 reply.
Replied to by danpost, almost 12 years ago:
In order to be able to check to see if the sound is still playing or not, you need to create a GreenfootSound object. Using the Greenfoot class method 'playSound' does not give you the capability to control or make checks on the sound. After creating the object, use the GreenfootSound methods to control and check it (refer to its documentation).
getScore() not getting get?
By primepanda1, with 2 replies.
Last reply by danpost, almost 12 years ago:
primepanda1 wrote...
I had it where the counter was in the "Governor" class, but that didn't work because each governor had it's own counter, so I made the "Eating" class have one counter that all the "Governors" can reach, but unfortunately it is not.
Moving the counter to the Eating class does not change the fact that each instance (whether created from the class the counter is in or created from one of its subclasses) will have its own counter. Remember, an instance of a subclass is still an instance of its superclasses (all the way back to the Object class which is a superclass for
Zombie problem
By Corrupted, with 13 replies.
Last reply by danpost, almost 12 years ago:
First problem I see is that you have three different lines in the wrld class that have 'new Player()' in them. Each time you use that, you create a new Player instance. So, you create one and assign it to the field 'ma'; then you create another and add that one to the world; then you take the counter that belongs to the one that is not in the world and add it into the world; finally, each time you use the method 'getPlayer' you get a NEW Player instance that was just created and had no chance of being added into the world, yet. Only use 'new Player()' once, assigning it to the field, then u
Help starting next wave of enemies
By DarkGhost, with 6 replies.
Last reply by DarkGhost, almost 12 years ago:
Awesome that works brilliantly! Thank you so much for your help! :D
597
598
599
600
601
602
603
X