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
Newbie problem
By roronoa, with 5 replies.
Last reply by danpost, over 13 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 13 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 13 years ago:
ah - thanks, very simple thing I overlooked.
Adding a small pause/wait?
By blahblah26, with 5 replies.
Last reply by davmac, over 13 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 13 years ago:
You can re-like bounce time again because I re-uploaded it so the scores would be reset
again, a question about android
By Upupzealot, with 2 replies.
Last reply by Upupzealot, over 13 years ago:
@mjrb4 I found the discuss yesterday. Hah! It's really great to find out someone has do something :)
pivot .stk files?
By CrazyGamer1122, with 1 reply.
Replied to by CrazyGamer1122, over 13 years ago:
never mind, i figured it out. all i had to do was download stykes and export the .stk to a .png :)
weird duplication?
By -nic-, with 5 replies.
Last reply by -nic-, over 13 years ago:
thanks
drawLine(), bigger?
By erdelf, with 10 replies.
Last reply by SPower, over 13 years ago:
Tylers, that would be slower than fillRect, which would be perfect in his case:
erdelf wrote...
well, I only need vertical and horizontal lines.
I need help, again!
By Game/maniac, with 12 replies.
Last reply by -nic-, over 13 years ago:
nice one!
save background
By actinium, with 4 replies.
Last reply by actinium, over 13 years ago:
Thanks danpost, its the drawInage method i was seeking out.
I need help!
By Game/maniac, with 3 replies.
Last reply by Game/maniac, over 13 years ago:
thanks to both of you
Help
By Stephon231, with 6 replies.
Last reply by Stephon231, over 13 years ago:
thank you it works now
Getting the black keys spaced evenly on the piano
By Llama, with 1 reply.
Replied to by danpost, over 13 years ago:
The spacing between the black keys will be exact same amount as what you use for the white keys. The only difference will be that the offset will be one half the width of a white key more.
I uploaded a scenario to my account, but did not allow souce code.
By MarkooP, with 2 replies.
Last reply by mjrb4, over 13 years ago:
If you didn't upload the source code, then we don't store it - so there's no way to directly get it back, sorry. You can download the scenario and then run a decompiler on the class files if you like, which should get you back the majority of your code in a similar state: http://java.decompiler.free.fr/
935
936
937
938
939
940
941
X