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
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?
Exporting D:
By Draymothisk, with 3 replies.
Last reply by Draymothisk, over 12 years ago:
Here's a link to download the .zip of my project. This version exported, but skipped the intro screen. http://ninjadonut.net/isGuyDownload.php By default, the game tries to open "worldOne", but it redirects it to "gameStartWorld". If you open "worldOne", you'll find that code in the constructor. Feel free to poke around. As this is my first game, I got a bit lazy after a month of working on it, so the code might get a tad sloppy.
Applet on Website; saving variables in mysql
By shoro2, with 1 reply.
Replied to by Gevater_Tod4711, almost 13 years ago:
I think the
java.sql Library
will be helpfull. But I also don't know exactly how to do it. You should try to find a tutorial using google.
How to get the object location(x,y)
By zuyi53, with 1 reply.
Replied to by davmac, almost 13 years ago:
Well, firstly, objects don't really have names. Also, getObjectsInRange returns a list of objects, not just an object. It's probably best if you post what code you have, then we can help you to make it work.
How do i end the game ?
By Nz-Tank, with 17 replies.
Last reply by Nz-Tank, almost 13 years ago:
AHA! it worked! thank you so much, you just helped me on a 150 point project that wouldve lost some points without an end. Thank you so much i appreciate the help here, i really do
870
871
872
873
874
875
876
X