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
Running greenfoot projects on blue j
By Roshan123, with no replies.
Is it possible to run greenfoot scenario on blue j? If yes then how am i supposed to do?
Issue in uploading scenario
By S-Square, with no replies.
I am not able to upload my scenario in greenfoot gallery it is showing html 5 version of this scenario is not available can someone help me regarding this issue
phassing through floor and platforms
By Dlantz, with 2 replies.
Last reply by Dlantz, about 3 years ago:
I'm sorry, but im lost. at the moment i want to fix my problem with the platforms
Help with code
By Gabe1098, with 4 replies.
Last reply by danpost, about 3 years ago:
Gabe1098 wrote...
I had a bug, the ones on the top wouldn't work.
I would have thought the rotation was previously set. This could be done with the following: <Code Omitted>This should initialize those actors placed along the top of the world to move vertically (using the code I previously gave above). Note that the rotation could otherwise be set from the world:
So I have a game that I don't get how it works
By DavidSaguna, with 2 replies.
Last reply by DavidSaguna, about 3 years ago:
danpost wrote...
Line 17 creates a new
Ground
object whose
boolean
will be
true
until another
Ground
object is created (by this new one). So, each
Ground
object will create the next one when needed.
Thanks! Have a nice day!
How to keep my timer, and health from one world to another
By jc.xi, with 3 replies.
Last reply by danpost, about 3 years ago:
jc.xi wrote...
1: with the line of code you provided "Greenfoot.setWorld(new QuestionWorld(this));", can you put it into a method in the maze class that returns a variable that stores that instances of the world? So that we can access it in other classes?
Unnecessary. "this" IS that instance of the maze world when used in the
MazeWorld
class.
2:what if the ...new QuestionWorld () is being called in an Actor subclass? Because of that line that creates a new QuestionWorld we have something similar already but it's in the smooth mover subclass that I have created.
Run on a webpage??
By henryufo85, with 1 reply.
Replied to by Gabe1098, about 3 years ago:
If you mean share your scenario? you click the share button on the top right
garbage collection
By PetroGR, with 19 replies.
Last reply by danpost, about 3 years ago:
PetroGR wrote...
I'm talking about learning Java using Greenfoot.
Greenfoot IS Java. Its classes are provided to allow a beginner to start creating games and simulations right from the start. I believe you are correct in that the tutorial should mention how you can inspect an object in greenfoot. Right-clicking on the world and selecting
Inspect
on the pup-up will show all field values, not just from in
MyWorld
, but also from in
World
. The same goes for an
Actor
object. Inspecting an actor will show fields provided in the
Actor
class (namely:
copys of objects get affected when one is triggered
By Aaron-aid, with 2 replies.
Last reply by Aaron-aid, about 3 years ago:
yeah removing it fixed it
Auf attribute anderer Objekte zugreifen
By Schüler, with 2 replies.
Last reply by Schüler, about 3 years ago:
thanks
Shark Shooter
By juniarta.2, with no replies.
Shark Shooter Games
Trouble moving individual objects
By star101, with 3 replies.
Last reply by danpost, about 3 years ago:
star101 wrote...
my problem is that, at the moment they are each doing the same movement but I will change that later and if I put it in the Actor class they all must move the same way
Lines 4 thru 8 are executed every act step. Therefore, on act steps that do not have
tme%100
equal to
0
, you are not working with the actors in the world in lines 26 thru 40. Note: I am kind of surprised that you are not getting errors on the
move
lines between 26 and 40 as the actors should be in the world for
move
to find their locations in the world. Create the
No
How to showText for a seconds and remove it after few seconds
By loremipsum, with 11 replies.
Last reply by loremipsum, about 3 years ago:
danpost wrote...
The delay was only delaying the entire program above because the stage was being shown repeatedly/continually. The following will only show the stage once, delaying only while the stage is being shown: <Code Omitted>
woah Thankyou so much, finally got it hehe Thanks!.
Web version different from original
By Windeycastle, with 5 replies.
Last reply by Windeycastle, about 3 years ago:
Seems like I'll have to redo it for a big part to organise it better.
Saving 2 high scores seperately at a time
By Roshan123, with 39 replies.
Last reply by Roshan123, about 3 years ago:
Ohh sorry, actually i found ur website where u mentioned that u r a java programmer and i took "java programmer" as "Certified java programmer" in my mind Even if i visited that app but their was no reply from u. I thought u used it long years ago so i left it
51
52
53
54
55
56
57
X