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
Stopping when a score is reached.
By Penguins_and_Orbs, with 7 replies.
Last reply by Penguins_and_Orbs, over 12 years ago:
Is the middle bit all supposed to go into the world class?
Hey Friends~ getOneObjectAtOffset HELP T.T
By leeyong0, with 2 replies.
Last reply by leeyong0, over 12 years ago:
I wuv yu~ nohomo but iwuvyu~
Textfield
By Sl3nDeRm4n, with 7 replies.
Last reply by Sl3nDeRm4n, over 12 years ago:
thank you
Can't get the totalscore
By Malmotri, with 2 replies.
Last reply by Malmotri, over 12 years ago:
Thank you very much!
HI
By myheartwillgoon, with 4 replies.
Last reply by danpost, over 12 years ago:
Being 'getOneObjectAtOffset' returns one object (if any) whose image intersects the point in question, your actor could end up partially overlapping the food and not detect it. Better would be to use the 'getOneIntersectingObject' method (unless, of course, you want to make it much more difficult to 'eat' the food -- cutting the 'hit-zone' in half). At any rate, when food is being placed, you should use the 'getOneIntersectingObject' method; otherwise it may be very difficult (or impossible) for the actor to find the food without hitting the obstacle.
high score
By scarereeper, with 25 replies.
Last reply by danpost, over 12 years ago:
You need an open bracket at the end of the method declaration, not a semi-colon.
How to go out of loop when object is deleted
By Mateo, with 39 replies.
Last reply by Mateo, over 12 years ago:
It works thanks a lot
java.lang.NullPointerExeption
By Nehit, with 2 replies.
Last reply by danpost, over 12 years ago:
It really would not matter if an ArrayList can be null or not; the method where line 16 is will return null of none of the worlds classes match the parameter variable due to the programming. I think line 16 should be tested to ensure that when a match should arise, that it is triggered by that statement. You may have to use the 'equals' method to compare the classes. Also, after the method is called (because it may return null), there should be a check for a null value.
Oh boy! Here we go again!
By Minion1, with 5 replies.
Last reply by danpost, over 12 years ago:
I edited my last reply.
NEED HELP-
By myheartwillgoon, with 17 replies.
Last reply by danpost, over 12 years ago:
May you also continue centered on God and his good graces, with thanksgiving in all things.
Snake and smoothmover
By Malmotri, with 3 replies.
Last reply by actinium, over 12 years ago:
i quite like your snakes movement.
Hi my friends , I don't know what is "getOneObjectatOffset"
By myheartwillgoon, with 1 reply.
Replied to by SPower, over 12 years ago:
Read the
documentation
.
Teleport on maze game
By X32_PAFC, with 7 replies.
Last reply by X32_PAFC, over 12 years ago:
thank you, this has been helpful :)
HELP WITH EXPRESSIONS
By mimia, with 3 replies.
Last reply by mimia, over 12 years ago:
Thanks for your help!
Setting a new background
By Nerdbulwell, with 3 replies.
Last reply by danpost, over 12 years ago:
Did you import the image file into your scenario folder?
915
916
917
918
919
920
921
X