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
Java keys
By JetLennit, with 4 replies.
Last reply by JetLennit, over 11 years ago:
Yeah, I also wanted to know what it was for java.. thanks!
How to make reset button?
By Miikku, with 4 replies.
Last reply by mellotelli45, over 11 years ago:
ye but it that it is there no other programming you can give me
Movement help!
By FCG, with 6 replies.
Last reply by FCG, over 11 years ago:
danpost wrote...
To move toward an actor that is more than 200 pixels away:: <Code Omitted>
Thanks it worked.
Shooting Help
By SWAG, with 5 replies.
Last reply by steved, over 11 years ago:
No problem
Help with bouncing from top to bottom
By programmer274, with 1 reply.
Replied to by programmer274, over 11 years ago:
If anyone could reply that would be great.
Loops Help
By Robert2.0, with no replies.
I can I add a timer the for my game using a for statement.
Scrolling Background in Actor?
By Solringolt, with 1 reply.
Replied to by danpost, over 11 years ago:
All you need to do is add an instance GreenfootImage field to the world class to hold the current background image. Since I do not know the direction or speed of the scrolling, I will also include an instance int to hold the scroll speed.
Scrollbar
By welleid, with 3 replies.
Last reply by Gevater_Tod4711, over 11 years ago:
I added a scrollbar into the scrolling system.
Here
you can find the link to the superclass. Hope this demo can help you. @Solringolt Thanks this demo by SPower realy helped good.
whats an attribute ?
By sergiodeleon702, with 1 reply.
Replied to by Game/maniac, over 11 years ago:
please explain your question
Help with changing levels
By collin.leck, with 6 replies.
Last reply by collin.leck, over 11 years ago:
thank you to everyone for the help. danpost thank you for the code and it works.
Trying do 2 lvl in me game
By kexsas321, with 4 replies.
Last reply by danpost, over 11 years ago:
kexsas321 wrote...
<Code Omitted>
It does not good to call a new world from a world that is being created unless you are going back to it. I do not think you want to 'setWorld' to Level2 from the constructor of the first world.
Change background
By Solimbum, with 1 reply.
Replied to by Solimbum, over 11 years ago:
I tried this but that doesn't work....
null pointer exception
By Solringolt, with 4 replies.
Last reply by Solringolt, over 11 years ago:
Thanks! I thaught that when an object was removed the rest of the method wasn't called!
BUTTON
By mellotelli45, with 3 replies.
Last reply by mellotelli45, over 11 years ago:
cos i know no code yee
Help with making objects remove themselves in differen scenarious
By Creek, with no replies.
Hi i am trying to make it so that if an object is in the world for a certain amount of acts it removes itself, or if a character (Sonic) runs against it for a certain amount of acts it gets removed. At the moment i am trying to use the canSee method but that requires you to be on the object, how can i do this to make it so that a counter runs if my character is one coordinate away from the object? void remove() { if ( canSee(Sonic.class)) { iceCounter = iceCounter+1; } else if ( !canSee(Sonic.class)) { iceCounter = 0; iceMelter = iceMelter++; } if ( canSee(Sonic.class) && iceCounter == 30 ) { getWorld().removeObject(this); iceCounter = 0; } if ( iceMelter == 100 ) { getWorld().removeObjects(getWorld().getObjects(IceBrick.class)); } }
819
820
821
822
823
824
825
X