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 put an image in the world
By SorrelCeasar, with 4 replies.
Last reply by SorrelCeasar, over 12 years ago:
please like my game
Pinball: Don't know how I can let the Ball bounce back from the paddle
By BradM313, with 11 replies.
Last reply by SorrelCeasar, over 12 years ago:
mine too
Using getObjectsAt()
By Daylend, with 16 replies.
Last reply by Daylend, over 12 years ago:
Alright, so I got everything working. I took pieces of what you said and applied them to the code. What I actually changed was kind of a "duh" moment for me. To fix the code, I removed line 19 as well as line 9, because as you mentioned, they were redundant. I can just put it at the top of the method. I also, instead of removing the blocks, simply changed them to the background image. (Virtually the same thing) Now everything works. I've got one last method to finish (winning), hopefully all goes well and I'll stop bugging you guys lol. Thank you for everything.
Null pointer exception
By Gingervitis, with 2 replies.
Last reply by Gingervitis, over 12 years ago:
ohhh ok. I wonder how I missed that..... Thank You
Simple question about text.
By sqwuckies, with 3 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
I think the field Font.PLAIN is a 'normal' font.
countdown time by second
By laziaf, with 4 replies.
Last reply by laziaf, over 12 years ago:
@steved, okay.. tq @davmac, ups sorry. ok. i'll never do that again @danpost, ok, i'll try. tq
Closing buffered reader
By theprogrammer, with 7 replies.
Last reply by davmac, over 12 years ago:
Yes, that would work. But if the only reason for the actor's existence is to read the file, you might not need it at all. Just use 'if', i.e. instead of: <Code Omitted> do this: <Code Omitted>
New Game
By geekykid2013, with 28 replies.
Last reply by geekykid2013, over 12 years ago:
its okay i've found the solution
Needing some help with text, new here
By OxiClean, with 5 replies.
Last reply by danpost, over 12 years ago:
You may want to check out the Java Trail on
Learning the Java Language
. A wealth of information is available there.
turning problem
By smify22, with 1 reply.
Replied to by danpost, over 12 years ago:
Use 'if ("
keyname
".equals(Greenfoot.getKey())' instead of 'if (Greenfoot.isKeyDown("
keyname
"))'.
System.out.printIn()
By hessajm, with 3 replies.
Last reply by danpost, over 12 years ago:
Are you trying to say that the bomb should explode if the camel moves onto ( or over) one, and you are trying do avoid doing that?
How would I add text input?
By pashmi, with 6 replies.
Last reply by bourne, over 12 years ago:
http://www.greenfoot.org/scenarios/7578
Need help in terms of stopping the actor going through the walls
By Blakehammond, with 1 reply.
Replied to by MatheMagician, over 12 years ago:
Instead of checking the walls before you move, check for the walls after you move and if you are stuck, go backwards. Your code for the if statement should be more like this: <Code Omitted>
removeObject troubles
By CreepZilla, with 5 replies.
Last reply by CreepZilla, over 12 years ago:
yes that worked thanks :)
Missile Swerving
By GreenGoo, with no replies.
I have made a game where missiles randomly spawn and chase the mouse cursor. However, I want them to swerve away from each other if they come to close. How could I do this?
869
870
871
872
873
874
875
X