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
Index Out of Bounds Error
By Billykid679, with 2 replies.
Last reply by Billykid679, over 4 years ago:
Thanks a lot, I was stuck trying to make it work in the bomb class when I could have just put it in the plane class like you said.
random direction
By pleasehelpwithmycodeyt, with 3 replies.
Last reply by danpost, over 4 years ago:
Maybe: <Code Omitted>
How do you fix the size of the playing screen
By KylesGallery, with 2 replies.
Last reply by KylesGallery, over 4 years ago:
thanks
Array images
By EndlessTimes, with 7 replies.
Last reply by danpost, over 4 years ago:
You could do something like this (where the class of falling objects is called
Falling
and its
static
image array is called
imgSet
): <Code Omitted>
Gold shaking method
By pleasehelpwithmycodeyt, with 1 reply.
Replied to by danpost, over 4 years ago:
Add an
int
timer field: <Code Omitted>Then use something like this: <Code Omitted>
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.
66
67
68
69
70
71
72
X