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
RESIZE IMAGE
By rachpaguia@gmail.com, with 7 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
I FINALLY DID IT!!! THANK YOU ALL SO MUCH FOR YOUR HELP
Need help accessing variable from another class
By timothytitus, with 5 replies.
Last reply by timothytitus, over 9 years ago:
Oh I see thanks
How to make object jump
By Avilianne, with 3 replies.
Last reply by Avilianne, over 9 years ago:
Thank you! The demo was a huge help!
Null Pointer Exception?
By SeaShore, with 3 replies.
Last reply by SeaShore, over 9 years ago:
Thank you danpost!
Fractions
By Nosson1459, with 20 replies.
Last reply by Nosson1459, over 9 years ago:
So it seems this discussion is coming to a close. Thank you (plural) for all the help.
BACKGROUND HELP
By rachpaguia@gmail.com, with 7 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
Thank you so much!!
Adding the same object multiple times
By fgryh123, with 2 replies.
Last reply by Super_Hippo, over 9 years ago:
What stops you from adding several ones? <Code Omitted>
How to negate an if statement if a button is pressed
By ObliviaOng, with 2 replies.
Last reply by ObliviaOng, over 9 years ago:
I was able to code for it based on your suggestion, but I didn't exactly use the else part of the code that you gave. Though it was a really big help, thanks!
Doubles and Integers
By Wasupmacuz, with 4 replies.
Last reply by Wasupmacuz, over 9 years ago:
_ben_ wrote...
Your problem is that you write double vales to int. > Theory: an int is a 32bit value, thus it can hold 2^32 different values, a double is double an in thus 2^64 values. Thus, if you have a huge double int might be too small and you have "lossy conversion" > Fix: typcast the double to int. Typecasting works by butting the desired type in brackets before the expression. Here: screen = (int)(worldZ*perspective); this works since it is all just memory. Attention: you might still loose data during the conversion, but there won't be an error. An alternative way would be to check if t
java.lang.NullPointerException when trying to create counter
By SBRMR, with 2 replies.
Last reply by SBRMR, over 9 years ago:
Thanks a lot! I'll give it a go as soon as i get home tonight.
I have a problem with my Tetris-blocks not staying together.
By ElAdriano, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
You should not have all these getObjectsAtOffset methods. Your blocks which are forming a tetromino should know that they are forming a tetromino and should move as together (or not if it is not possible). You could also refer to
this discussion
on how to control the tetrominos from the world.
I have an actor that is being instantiated by another actor (not created), i want to reference the actor that's doing the instantiating
By Dylex, with 4 replies.
Last reply by Dylex, over 9 years ago:
Hmm, i was just thinking it might be better to just set the location of the Fists actor to that of my Player every time i shoot. I'm just thinking that it might be a bit pointless to have classes for each weapon type in my character that inherits from other weapon classes, might as well just have individual classes for each actor.
the "turnTowards()" method does not work
By fnole12, with 8 replies.
Last reply by fnole12, over 9 years ago:
thx
I need help in my school project, can anybody help?
By Khoshekh606, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
it's just going left or right
What do you mean by that? Is there any code which could do anything else?
"java.awt.Color cannot be converted to greenfoot.color"
By PenguinJ2, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Remove line 2 and remove every 'java.awt.' in line 8. Greenfoot has its own Color class since version 3.1.0.
383
384
385
386
387
388
389
X