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
Multiplayer Board Game
By 349592576, with 3 replies.
Last reply by danpost, over 4 years ago:
349592576 wrote...
I'm planning on using the UserInfo scoring ability to assign every user a serial number
That sounds like overkill. Each user already has a unique name. Also, I think a better use of the score field would be to track who is playing who. That is, when two players start a game, take a unique game number and make it the score field for both players. That way, you can use
getNearby
to quickly find an opponent as well as for checking for unique game numbers.
SetPaintOrder
By BlueHand, with 1 reply.
Replied to by Roshan123, over 4 years ago:
setPaintOrder(A.class, B.class, C.class) A will be above B and C B will be above C and below A C will be below A and B
Problem with an transaction arraylist
By divinity, with 60 replies.
Last reply by divinity, over 4 years ago:
ok
How to get rid of text?
By BlueHand, with no replies.
Hello! I have an arraylist and constructor in my Questions class! There are five questions in the constructor. After I make one appear, how do I make the previous question disappear?<Code Omitted>
How to make a object do something when touching an other object?
By Ineedhelpthx, with 3 replies.
Last reply by Ineedhelpthx, over 4 years ago:
thanks for the work man
Make a button interact with the hp bar
By Murdd0k, with 2 replies.
Last reply by Murdd0k, over 4 years ago:
your code itself didn't solve my problem, but its logic helped me to understand my mistakes, thank you very much
Editor Appearance
By DZaharia, with 3 replies.
Last reply by Gbasire, over 4 years ago:
Isn't this the stride editor ? It may have happened because your student created a new stride project instead of java project
How to use stop the program
By BlueHand, with 1 reply.
Replied to by danpost, over 4 years ago:
Add a
public static int
field to your world to track clicks: <Code Omitted>Initialize it to zero in the constructor <Code Omitted> In class of button(s), increment the field when clicked: <Code Omitted> In world
act
method, add the following line: <Code Omitted>
Not achieving collision
By Tot, with 1 reply.
Replied to by danpost, over 4 years ago:
The movement of
Player
and
Box
would be quite similar to
Bug
and
Mushroom
in my
Sokoban Movement Demo
scenario.. Maybe you can get some pointers from it.
How can I bring a variable over from my world to my actors
By Tot, with 4 replies.
Last reply by danpost, over 4 years ago:
Tot wrote...
ok update I got the code in and its good and all that but I still don't know how to keep the booleans the same between the world and the actors
You should not have
booleans
in your world -- not to keep same as actors.
Boolean button
By BlueHand, with 1 reply.
Replied to by BlueHand, over 4 years ago:
Basically I am making a quiz. I want the quiz to move on to another question after clicking a true-false button. I would also like it to give me a score out of 5 after all 5 questions.
getButton method
By Roshan123, with 3 replies.
Last reply by Roshan123, over 4 years ago:
Oh, ok. Thanks to both of u for helping me out)
how to wai
By hackeplayz124, with 12 replies.
Last reply by danpost, over 4 years ago:
hackeplayz124 wrote...
thx for helping me
And then, there are the typo
s
. I meant, use: <Code Omitted>
Is there any way to simulate a mouse click?
By lary_, with 5 replies.
Last reply by lary_, over 4 years ago:
Got it! I just wanted to know if I could do that in Greenfoot because in Unity, for exemple, there's a function to do that. Anyways, I solved the problem by following what you guys suggested. Thanks :)
Player pushing Block Pushing Block
By Total-Eclipse, with 16 replies.
Last reply by danpost, over 4 years ago:
Total-Eclipse wrote...
I think this need the Blocks to not intersect with the world border, but I am unsure.
Yes -- to be sure. Another condition for a block to move depends on its x-coordinate in the world. Actually, that would be two conditions -- one for left edge and one for right.
67
68
69
70
71
72
73
X