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
Create a pop-up that asks for a password before proceding?
By Entity1037, with 2 replies.
Last reply by JetLennit, over 11 years ago:
1st you must import import javax.swing.JOptionPane; 2nd you do something like this<Code Omitted> It is funny... I was just working on a password protection program
ClockDisplay from BlueJ (couldn't find active forums on their site)
By thekidj, with 2 replies.
Last reply by thekidj, over 11 years ago:
danpost wrote...
I am not sure if your timeTick method is written correctly to do what you want. I would thing you would want something more like the following: <Code Omitted>
Worked perfectly. Thanks a bunch!
Start a "set"-method | Start the scenario
By Tiakuran, with 4 replies.
Last reply by Tiakuran, over 11 years ago:
Wow! Busch, your code was perfect, with all the comments I really understood what you did there for me. Didn't expect such a fast and great help here. Thank you :) Now the game works perfect. The only problem is, that it only runs one time and after resetting the scenario the objects don't move if I press the keys. But doesn't matter, it works when you start Greenfoot! Again: thank you and have a nice evening ^^
Raycast Help
By JetLennit, with no replies.
Could someone help me? The program wont start up and wont work.... I have been modifying
this
and it wont work..... tell me what classes you need I would post the program but tried and it outputted this Exception in thread "Thread-83" java.lang.IllegalArgumentException: image == null! at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(ImageTypeSpecifier.java:925) at javax.imageio.ImageIO.getWriter(ImageIO.java:1591) at javax.imageio.ImageIO.write(ImageIO.java:1520) at greenfoot.export.Exporter.publishToWebServer(Exporter.java:191) at greenfoot.gui.export.ExportDialog$ExportThread.run(ExportDialog.java:241)
Deselecting by clicking away
By Kartoffelbrot, with 12 replies.
Last reply by Kartoffelbrot, over 11 years ago:
Yes you are right. Thank you very much! danpost, too! The Interface class is empty (It's only used for sorting the classes in greenfoot).
Cookie Clicker score board help (partners?)
By joeschmoe, with 3 replies.
Last reply by JetLennit, over 11 years ago:
I can't really download code for about a month... should we use the discussion area or
this
to communicate ?
how can i make it so my player can only jump if on gound?(platformer)
By finbololz, with 1 reply.
Replied to by GreenHouse, over 11 years ago:
it's like you said; only jump if on ground<Code Omitted>
my animtion is not working??
By finbololz, with 2 replies.
Last reply by finbololz, over 11 years ago:
thanx its working now
Position Detecting Help
By Y3llowMustang, with 4 replies.
Last reply by Entity1037, over 11 years ago:
Try this:
How to increment an integer by 1
By JasonZhu, with 2 replies.
Last reply by Entity1037, over 11 years ago:
*facepalm*
Change which world subclass is loaded first?
By Entity1037, with 4 replies.
Last reply by Zamoht, over 11 years ago:
No problem.
How do I have 2 act methods that remove objects run simultaneously without one erroring out the other?
By JasonZhu, with 4 replies.
Last reply by JasonZhu, over 11 years ago:
Thanks for the great explanation, I can make sense of it now.
Source Code?
By g3o, with 8 replies.
Last reply by g3o, over 11 years ago:
Okay. Thanks everyone. I noticed this very thing that you guys are saying. That not everyone has "Open in Greenfoot" on their page. Which was the issue I was having. As I was just clicking one program to try and run it. After opening others, I noticed something that I had not seen before, which was what I missing here. It was just hard to figure out the one game I was trying to download and having not opened any others. Problem solved, thanks again guys.
Is this how I spawn objects while having an initial amount in the World?
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 11 years ago:
I understand now, thanks guys and sorry for the late post.
How to solidify an object?
By BlazeGFX, with 2 replies.
Last reply by danpost, over 11 years ago:
See the documentation of the Actor class. It contains several collision detection methods as well as a couple ways to change the location of actors. You would ask 'if the player is moving downward and intersects a platform, adjust the vertical location of the player to stand on the platform'. Have the platform check for a player in such a position (and not moving upward) to move the player with the platform.
789
790
791
792
793
794
795
X