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
opperating with lists
By Mux, with 10 replies.
Last reply by Mux, over 12 years ago:
thanks for the information its much better to do the thing in your one line code thx there for
Passing variables
By tomduff5985, with 3 replies.
Last reply by danpost, over 12 years ago:
If you only have one fisherman in the world, then in the second actor's class, add the following method: <Code Omitted>
getMouseInfo() Problem with mouse out of the screen
By Mux, with 5 replies.
Last reply by danpost, over 12 years ago:
If you use <Code Omitted>the last line will always return 'null' as you already received the info in the 'if' statement and the info in Greenfoot was nullified. That is why something in the form of SPower's method needs to be used.
Inputting string
By roronoa, with 1 reply.
Replied to by SPower, over 12 years ago:
<Code Omitted>
Floating platform
By Stephon231, with 2 replies.
Last reply by Upupzealot, over 12 years ago:
the problem may be the “getX()” method actually return the position of the platform, not the“actor”
Help please
By Stephon231, with 4 replies.
Last reply by Upupzealot, over 12 years ago:
@Builderboy2005 OK, you win :D
what's the use of the method "intersrcts(Actor other)" in the Actor class
By Upupzealot, with 1 reply.
Replied to by Upupzealot, over 12 years ago:
never mind, I misunderstand intersect for interest... :(
Variable from world class to actor class
By roronoa, with 1 reply.
Replied to by danpost, over 12 years ago:
If the name of your sub-class of World was 'MyWorld', and the variable in the world was 'myVar', then in the actor class: <Code Omitted>Replacements: 'MyWorld' to the name of your sub-class of world 'int' to the variable type needed 'myVar' to the name of the variable in your sub-class of wo
Enemy attacking randomly
By CrazyGamer1122, with 2 replies.
Last reply by CrazyGamer1122, over 12 years ago:
thank you, i will add your suggestions to the code and see what happens :)
storage.csv
By mark.hayes, with 2 replies.
Last reply by danpost, over 12 years ago:
Yes. UserInfo.isStorageAvailable() only checks to ensure that the user is logged in (if the user is not signed on, then storage will not be available). Locally, if you set the preferred user to an empty string (blank), the method would then return 'false'. It is best not to mess with the 'storage.csv' file (treat it as read-only). You can, however, just delete the file, and have a new one created from within the scenario by way of the 'store()' call (for testing purposes).
Newbie problem
By roronoa, with 5 replies.
Last reply by danpost, over 12 years ago:
(1) Since the Senator and Deck classes are sub-classes of the Card class, you can put those methods in the Card class and they will automatically be usable by both classes. Think of the way you use 'getX()' on an object that is a sub-class of the Actor class. You do not have the method in the sub-class, but are able to use it there. As well as 'public' (which can be called from another actor class or the world) and 'private' (which can only be called from the class it resides) for method accessability, there is a 'protected' which can be called from ANY class that is of that class type (fro
Removing an object and adding it again at the same place.
By Codybean1, with 12 replies.
Last reply by danpost, over 12 years ago:
This discussion is getting rather confusing. Hopefully, I can make things a little bit clearer. In order to add an object back to the world at the same location it was removed from, with code in the world class: you will need to save the object and both the x and y coordinates of the object before removing it.
setRotation(angle + angleDelta) not working?
By Michionlion, with 2 replies.
Last reply by Michionlion, over 12 years ago:
ah - thanks, very simple thing I overlooked.
Adding a small pause/wait?
By blahblah26, with 5 replies.
Last reply by davmac, over 12 years ago:
See this tutorial video:
Timers: make something happen after a delay
Score board
By Game/maniac, with 4 replies.
Last reply by Game/maniac, over 12 years ago:
You can re-like bounce time again because I re-uploaded it so the scores would be reset
931
932
933
934
935
936
937
X