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
STUDENT IN DIRE NEED PLEASE HELP
By xstudentx, with 2 replies.
Last reply by davmac, about 12 years ago:
Another option is to copy the 'canSee' and 'eat' methods from the Animal class into your Pie class. Or even just look at how they work and write similar code where it's necessary.
Balls hitting each other
By JDSmooth, with no replies.
So I still have my game where there are blue balls bouncing off of walls. I've gotten them to bounce off the walls just fine, but now I really want them to bounce off of each other when they hit each other. Does anyone know how I should start going about this?
Change direction of actor when moving
By vegtio, with 5 replies.
Last reply by vegtio, about 12 years ago:
I fix my problem <Code Omitted> setRotation(getRotation()+180); was how i fixed it.
how to display text
By wahaj, with 7 replies.
Last reply by danpost, about 12 years ago:
You can combine the String values using the '\n' escape sequence as a separator (it indicates a new line of text). This will cause each line to be centered in the image of your Instructions actor, which may not be what you want. As an alternative you can create the image of each line separately and use the 'drawImage' method to put each line exactly where you want them on one main image (you will need to know the width of the widest image and the height of one image times the number of lines to determine the size of the main image -- or, I guess you could create the image using the first wa
Compile - clears the screen each time?
By rdlatimer, with 3 replies.
Last reply by jpmyers15, about 12 years ago:
kiarocks wrote...
There is an option called save the world if you right click on the background.
Thanks for the advice. I had the same problem and I believe it is resolved now after doing the Save The World before changing the code.
Simulation just pauses
By KevinWelch2001, with 4 replies.
Last reply by danpost, about 12 years ago:
The greenfoot API shows the MouseInfo class (and how to acquire a MouseInfo object). It also contains all the methods you can use on a MouseInfo object. Please review the documentation.
Referring to another actor
By Hersov, with 2 replies.
Last reply by Hersov, about 12 years ago:
Thanks alot Danpost, saving me <3
Rolling pool balls
By BrownBoii333, with 1 reply.
Replied to by JetLennit, about 12 years ago:
Check out
this
series
Unable to pass the value of a collectable
By connorxclose, with 5 replies.
Last reply by danpost, about 12 years ago:
That means that you have not set a Counter object to the 'scoreCounter' class field.
Does any one know how this works?
By chamuzi3, with 1 reply.
Replied to by danpost, about 12 years ago:
Here is what I see: we have an Actor class that creates Rat objects (line 9) that initially moves 1 pixel per act (line 11). The fact that the 'speed' field has 'private' access and that the value of the field is never changed indicates that this initial speed is also its permanent speed when moving. This makes the 'for' loop in the 'act' method (line 18) unnecessary. The following should be sufficient: <Code Omitted>Now, for the 'move' method: lines 22 through 26 gets user keyboard input for movement of the actor by way of the arrow keys -- no problem
help
By alikhan, with no replies.
anyone knows how to add enemies. I have made a tank game I am able to control it, the tank is also able to shoot, now I need help with adding enemies. I want to add other tanks that are able to shoot back at me. some help would be really good as I am doing this for a school project. thank youuuuuuu
"Gamepads with Greenfoot" is outdated!
By K_wow, with 4 replies.
Last reply by K_wow, about 12 years ago:
davmac wrote...
I'm not sure it needs updating. The window you posted shows that it doesn't specifically recognize Windows 7, but that it uses the "default windows plug-in" which I think should be ok. The real error is after that: "Failed to acquire device". To be honest I'm not sure what that means precisely; perhaps some other program that is running has already claimed the gamepad?
Thanks for the reply davmac :) As for other programs claiming the gamepad, I'm not sure about that, I'm not playing any other games with the gamepad plugged in at the time... There may be some hidden prog
Greenfoot won't compile
By jahusa02, with 7 replies.
Last reply by jahusa02, about 12 years ago:
I tried with new scenario and scenarios from the Website Always the Same problem
Newtons-Lab-3: problem adding planets with mouseclick
By PoDh34d, with 9 replies.
Last reply by Nuraini0795, about 12 years ago:
where is scenario ?
Moving up!
By hipsterpants, with 4 replies.
Last reply by hipsterpants, about 12 years ago:
Thanks JetLennit and danpost! You guys helped a lot!
636
637
638
639
640
641
642
X