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
Intstant transisiton while pressing space
By zehbi-tracker, with 2 replies.
Last reply by zehbi-tracker, 8 months ago:
okay thank you so much it works
Constructor class not found
By jbafs, with 2 replies.
Last reply by jbafs, 8 months ago:
yea so I solved the problem.
How do i make my character jump?
By zehbi-tracker, with 2 replies.
Last reply by zehbi-tracker, 8 months ago:
thx it worked btw
Help for score variable to be accessed across worlds and actors
By yipyip, with 1 reply.
Replied to by danpost, 8 months ago:
yipyip wrote...
What can I do to my EndWorld to have it access that final score? I need to display is as text. Also would it be possible to have my actors access the score value while its increasing?
Any active actor in a
GameWorld
instance has access to that world simply by using the following: <Code Omitted>Then, the score of the game is acquired by what follows the equal sign in the following code line: <Code Omitted>You can display that value in the
EndWorld
world when you create that world (from within
Trying to keep the same score when moving to a different world to show what score they get
By I_NEED_HELP, with 2 replies.
Last reply by I_NEED_HELP, 9 months ago:
Thank you so much Dan Post
collision
By HakimNait, with 4 replies.
Last reply by HakimNait, 9 months ago:
thank you very much it works
Points System
By Kookaburra737, with 1 reply.
Replied to by danpost, 9 months ago:
Kookaburra737 wrote...
Hey everyone, I was making a game where a lizard collects fire balls to gain heat and has to avoid a car that bounces, but I'm having a lot of trouble displaying the score, would anybody be able to help me out? this is my code for my counter.class: << Code Omitted >> I just cant figure out how to get the variable from another class to be displayed in this actor... Can someone plz help me?
Line 19 should be; <Code Omitted>and line 64 should probably be:
How can i spawn a actor like a bullet spawn on another actor
By Thijn, with 1 reply.
Replied to by danpost, 9 months ago:
Thijn wrote...
I tried spawning a bullet in a spaceship everytime you press space but it did not work i dont know how to spawn a bullet on a moving spaceship so maybe you guys can help me out
In the class of the spaceship, use something like the following: <Code Omitted>You may also need the following: <Code Omitted>
Draw Polygons on Image Background
By UmbranDrake, with 4 replies.
Last reply by UmbranDrake, 9 months ago:
Thank you!!
Restarting a bg song
By Alberthepirate, with 1 reply.
Replied to by danpost, 9 months ago:
Alberthepirate wrote...
So I have so far GreenfootSound song = new GreenfootSound("song1.mp3"); But, is there a way so I can restart the song?
<Code Omitted>as opposed to: <Code Omitted>which just resumes the song.
how to make the playbutton work with a smal script
By gijsee, with 1 reply.
Replied to by gijsee, 9 months ago:
i did it
.get counter is not working for my shooter game
By Pls_help, with 3 replies.
Last reply by Pls_help, 9 months ago:
Never Mind my problem was solved Thanks
Shooting
By Kookaburra737, with 4 replies.
Last reply by danpost, 9 months ago:
Kookaburra737 wrote...
Thank you so much, it works perfectly now, but how would I delete the bullets touching the worlds border?
Use code like the following in the
act
method of the projectile's class: <Code Omitted>You can modify the code to include vertical limits.
Why can't Greenfoot 3.8.2 export jar files?
By sandhsf, with 1 reply.
Replied to by nccb, 9 months ago:
Here's the reasoning, but I'd be happy to listen to everyone's intended use for it to see what everyone wants from this feature. Running a Greenfoot scenario requires a working Java installation and all the JavaFX libraries, and the Greenfoot common classes and the scenario bits. We can bundle the latter two into a JAR, which is what we always used to do. The Java installation is not impossible if you ask your intended user to install it, as it will go on your PATH so Greenfoot doesn't need to know where it is. The problem is the JavaFX installation. We cannot easily bundle this in the
publishing in greenfoot
By karthigakumar, with 1 reply.
Replied to by nccb, 9 months ago:
What version of Greenfoot are you using?
5
6
7
8
9
10
11
X