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
How to get a boolean from world in an actor?
By Kirito101, with no replies.
figured it out.nvm.
I need help in my color smash game
By lowens, with 1 reply.
Replied to by Super_Hippo, over 11 years ago:
With what do you need help? Looks like this thread... http://www.greenfoot.org/topics/find/45551#post_45551
need help in adding objects to world using arraylist
By lowens0, with 2 replies.
Last reply by lowens0, over 11 years ago:
thanks it worked! xD
Hey my code has gone wrong I want my spaceship to shot in the direction its facing
By coder04, with 5 replies.
Last reply by Super_Hippo, over 11 years ago:
Are you sure that his class name started with a capital letter? If his class is called 'enemylaser', then this would explain the confusion.
I want my spaceship to only shoot a number of shots before you cannot shoot anymore
By MrJoeShow, with 1 reply.
Replied to by NikZ, over 11 years ago:
Just make a variable shotsLeft = (your number). Every time the rocket shoots, do shotsLeft--. You can't shoot if shotsLeft is 0.
Problem with if(getWorld() == new World())
By nivilom86, with 8 replies.
Last reply by nivilom86, over 11 years ago:
Ok, thank you more and more ;)
How to change the value of a "Level
By oh123, with 2 replies.
Last reply by danpost, over 11 years ago:
The 'level' field in the Animal class should be made 'public' and 'static' and initialized in the CrabWorld constructor: <Code Omitted>Without this field being static, when you create the Animal objects from within your 'populateWorld2' method, the level fields given them are set to one. So now, instead of each object getting an individual level field when created, the class will have a single level field when the project is compiled.
greenfoot java.lang.IllegalStateException: Actor not in world.
By dottiestar, with 6 replies.
Last reply by dottiestar, over 11 years ago:
Thank you so much! I used the if condition before the method and it worked!
How to change the value of a field in the actor class
By olivia, with no replies.
sdf
Java 8 security
By Zamoht, with 2 replies.
Last reply by Sn3aKyGuY, over 11 years ago:
When you update Java it gives you the option to reset all your security exceptions. You may of clicked on accept when it asked you if you wanted to do it. They recommend you do it every 30 days for security reasons, but most people never do. Right click on the applets, then cluck Run. When the security message pops up allow it to run automatically in the future. Hope this helps.
Images according to Levels
By Mariachi, with 18 replies.
Last reply by Mariachi, over 11 years ago:
Awesome, Thanks to you two
Score Counter Keeps Counting
By Sn3aKyGuY, with no replies.
Not quite sure what the issue is here so hoping someone can help me out. I'm working on my own version of the modern-crab scenario and I've had pretty good luck so far with searching the site and docs to find all my answers, but for whatever reason the score counter I have included is counting up at a fast rate of speed for no apparent reason. I've tried renaming the class from Counter to Score, thinking that may help with something interfearing code wise. I've tried removing all non-Score related counting in my Worm class, but that dosen't help. Just slows how fast the counter counts up. Link: http://www.greenfoot.org/scenarios/12203 Thanks in advance!
UPDATE: Sorry guys, I had my .bumpCount code in the wrong Actor Class. Been working on this for almost 12 hours now so a little fried. >.<
Animated Charecter
By genfy, with 3 replies.
Last reply by danpost, over 11 years ago:
genfy wrote...
So, going by your advice I'm going to have the switch be based around timer instead of frame, and have 60 be frame 1, 40 be frame 2 and etc. But thanks!
I do not know from where you are getting values of 60, 40, etc. :?
getOneObjectAtOffset() not working
By Cyoce, with 3 replies.
Last reply by Cyoce, over 11 years ago:
Thanks for the help! It works now!
does anyone know how to make it so my space ship dies when i get closer to rock
By coder04, with 5 replies.
Last reply by danpost, over 11 years ago:
rrose5 wrote...
good point, maybe you could hint him toward the right direction :P
That does not seem to help with this user. Please see
this
discussion thread.
648
649
650
651
652
653
654
X