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
Is it too shaggy?
By CHEGAMERXD, with no replies.
<Code Omitted>
I want to code on Roblox but I can't open Roblox Studio
By CHEGAMERXD, with 1 reply.
Replied to by CHEGAMERXD, about 6 years ago:
OK I think my PC is old I think i cant run it :(
Dang
idk
I need some help with locations from another class
By Cats123, with 19 replies.
Last reply by danpost, about 6 years ago:
Cats123 wrote...
ok i did that and it actually shoots now but the viralload doesnt go at the angle it's supposed to. It just goes straight
That may be because your location coordinates are stored in
int
fields. Any fractional movement in both the horizontal and vertical directions is lost when you use
getX
and
getY
in a
setLocation
statement. Retain the location coordinates in
double
fields and adjust their values so you can set the new locations.
need help with my file dialog
By Cats123, with 52 replies.
Last reply by Dr.Blythe, about 6 years ago:
*ahem*, really?
can anyone help with getting my highscore in my scoreboard
By Ac951, with 1 reply.
Replied to by Dr.Blythe, about 6 years ago:
Little bit late at this point in time, but *ahem*, really?
need help with my scoreboard
By Ac951, with 11 replies.
Last reply by Dr.Blythe, about 6 years ago:
Little bit late at this point in time, but *ahem*, really?
cant get my scoreboard to work
By Ac951, with 1 reply.
Replied to by Dr.Blythe, about 6 years ago:
Little bit late at this point in time, but *ahem*, really?
Need help with my java code
By Ac951, with 37 replies.
Last reply by Dr.Blythe, about 6 years ago:
Little bit late at this point in time, but *ahem*, really?
Can't get enemies to move
By Ryaj987, with 10 replies.
Last reply by danpost, about 6 years ago:
Ryaj987 wrote...
I tried that and they just ghost off the screen. I might just have to retool how I'm putting them into the map. rip
I got them to move a little with this: <Code Omitted>
How to give a file to other users?
By SoySoy4444, with 4 replies.
Last reply by SoySoy4444, about 6 years ago:
Oh, I asked on the discussion forum here
because
I couldn't find a solution...
NEED HELP WITH SCHOOL PROJECT
By macaroon72, with 9 replies.
Last reply by macaroon72, about 6 years ago:
Okay, thank you both so very much! I will post here letting you know if it works! Wish me luck!
How to print Java source code?
By Herbert733, with 3 replies.
Last reply by danpost, about 6 years ago:
I might be easiest to open a file directory and go to the scenario folder. Then select (right-click) the .JAVA file of the class in question, select "Edit" (open with a text editor) and print it from there. I get a
Print
dialog box (after clicking on the "OK" button) when I try what you said you tried.
I want to write a method that detects if a particle is falling.
By Atharva1912, with 8 replies.
Last reply by Atharva1912, about 6 years ago:
danpost wrote...
I said move it -- not change it. Line 8 should be: <Code Omitted>
Got it Thank you so much
Counter Value help
By NewUser1201, with 10 replies.
Last reply by NewUser1201, about 6 years ago:
That fixed it, thank you for all your help
Running .jar
By SoySoy4444, with no replies.
Note
: I have a Mac. I finished my game and exported it as a .jar. I tried to open it but it keeps on coming up 'The Java JAR file "filename" could not be launched. Check the console for possible error messages.' I copy pasted the command Greenfoot gives
"/private/var/folders/g3/8kbv7g411r32xwzp2681_s540000gn/T/AppTranslocation/D6077ABE-1117-4F8B-811E-730C78C0D370/d/Greenfoot.app/Contents/JDK/Home/bin/java" -cp "/private/var/folders/g3/.......
onto terminal and it works on my mac, but on the Greenfoot
website
it says
If you want to run the scenario, on another machine, you will need to adjust the command-line to point to their local Java and JavaFX installation. You may find it easier to get them to install Greenfoot (which comes with Java and JavaFX) and play the scenario within Greenfoot, or to export it to this website and let them play online.
What does it mean to adjust the command-line to point to their local Java and JavaFX installation? Which part of the command do I change?
Is it just at the end of the second
"/private... "
block where there's a path to a filename like
Greenfoot.app/Contents/Resources/Java/javafx/lib/javafx.web.jar:/Users/username/pathtofile/filename.jar" --module-path
? Are there other part s of the command I have to change?
130
131
132
133
134
135
136
X