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
Need help with lil crab scenario
By Chokakoi73, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
- move - if it touches a wall --- move back and turn
remove objects from another class
By Telko, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
If you can access it, you should be able to change them the same way. The proper way is to use getter and setter methods. <Code Omitted>
danpost go away
By 111213451, with no replies.
I love memes
helppppp
By bdbornilla, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
It seems like 'counter' is null and not the counter in your world.
I need help on how to make my pistol shoot one bullet, it shoots like a machine gun right now!
By Zappib, with 3 replies.
Last reply by Zappib, over 9 years ago:
danpost you are a legend, I love you mah man. Now I will get A+++ on my ict because of you. I want to meet in real life and shake your hand my good sir. Also thank you for fixing my problem I love you to Nosson if it was not for you replying dan would not have come here and suggested how to fix my problem so I can have my LMB to shoot, i will stop have a fantastic you two <3
classNotFoundException on greenfoot.org
By Nosson1459, with 6 replies.
Last reply by Nosson1459, over 9 years ago:
The following is the exact message that I receive: Application Error X
ClassNotFoundException
greenfoot.export.GreenfootScenarioViewer.class <Details> <Ignore> <Reload> I am also NOW on the latest version of Java (and Greenfoot). When I click on the button that says "Details" a new window pops up which says: Java Plug-in 11.121.2.13 x86 Using JRE version 1.8.0_121-b13 Java HotSpot(
Problem
By ArctiCicle, with 2 replies.
Last reply by Nosson1459, over 9 years ago:
Super_Hippo wrote...
1: Use code tags. 2: Do not just use 'Problem' as your title and don't describe it. 3: Try to not give unrelated information. Giving the following would have been enough;
So basically you should
read this
.
Super_Hippo wrote...
<Code Omitted>
You don't need to use a GreenfootImage. You can just do: <Code Omitted>
Multiple Levels with subworlds
By Dylex, with 2 replies.
Last reply by danpost, over 9 years ago:
If you want all your subworlds to share a single field whose value is retained from world to world, then make it a 'static' field. For example: <Code Omitted>Just make sure to explicity reset the value of these fields in your initial world object. Refer to my
Super Level Support Class
scenario as an example of what I mean.
java.lang.NullPointerException
By heyu, with 10 replies.
Last reply by heyu, over 9 years ago:
Well I solved that problem, I tried to add Trees in an actor class not in a world class. Thanks for the help.
help
By bdbornilla, with 4 replies.
Last reply by Super_Hippo, over 9 years ago:
bdbornilla wrote...
what do you mean?
I mean that you use 'counter' but nowhere in the code shown above you declare what 'counter' is. So you could write some random letters instead and will get the same result.
ANIMATION- Please help
By Jimmywow, with 5 replies.
Last reply by Jimmywow, over 9 years ago:
I guess another way we could fix this is if the w key is released or not pressed it sets jimmy back to his 1st frame or something and that will also fix his legs in the air problem because when it go's through the animation frames it will just be stuck on a certain frame and i would rather go back to the beginning frame
Removing all objects but some
By timothytitus, with 3 replies.
Last reply by Nosson1459, over 9 years ago:
For your code you would probably have to do: <Code Omitted>
How to handle the act method, if there is no object
By wueschn, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
The object is not "deleted", it is only removed from the world. You can do anything with it after it was removed which does not require the object to be in a world.
How do you make walls in a top game?
By Zappib, with 1 reply.
Replied to by danpost, over 9 years ago:
You could reduce the transparencies of the images of the inside walls (just by one) so your character can determine which he can go through and which he cannot.
I need help with enemy movement
By Skrylo, with 1 reply.
Replied to by danpost, over 9 years ago:
Each row of invader must be controlled from one central location -- in other words, they should not each control their own movement. On top of that, all rows of invaders must be controlled from one central location because if any row has an invader at the edge and needs the row to drop and move back across the other way, then all the rows need to drop and move back (in succession). My
Space Invaders Movement Demo
scenario shows one way to accomplish this.
378
379
380
381
382
383
384
X