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
What's wrong with this?
By DoomN1nja, with 2 replies.
Last reply by DoomN1nja, over 13 years ago:
Sorted. Thx.
Need Some Help
By ddavid33, with 8 replies.
Last reply by actinium, over 13 years ago:
Well tyler trusts you and thats ok. Just saying when you upload a scenario with the code anyone can dig in and give you feed back. If you want to have feed back in private by e-mail then thats up to you. Good luck :-)
Nullpointer exception to nothing?
By Minion1, with 10 replies.
Last reply by actinium, over 13 years ago:
Just a guess but should the line <Code Omitted> be <Code Omitted>No sorry, ignore the above. On the design side i noticed readMapFile returns void, it would be better to return type String array , the map from the file in effect. Then any method that wanted the Data file in any project could use the method and the last line in the method could be moved to the world constructor with the readMapFile() method as a parameter.
Image Change
By BradH, with 11 replies.
Last reply by BradH, over 13 years ago:
oh, thank you
wrong values
By erdelf, with 5 replies.
Last reply by erdelf, over 13 years ago:
thx danpost. it works without problems now
Drawing text on screen
By -nic-, with 6 replies.
Last reply by -nic-, over 13 years ago:
i will very much so i have just used images in the past but im having troubles with images using greenfoot4android
short question to if()
By Mux, with 3 replies.
Last reply by Mux, over 13 years ago:
thanks got it
getColorAt() doesn't work out
By Mux, with 8 replies.
Last reply by Mux, over 13 years ago:
Thanks for all the help i got the problem fixed now.
Help with a Game counter.
By cpiggott, with 3 replies.
Last reply by -nic-, over 13 years ago:
btw you could use robotsDestroyed += 1; or robotsDestroyed++; instead of robotsDestroyed = robotsDestroyed +1;
snake, want the movement of snake to stop when touching blocks
By kentan, with 2 replies.
Last reply by danpost, over 13 years ago:
You can create a public boolean method in the Snake class to return the state of intersecting a block and call it from the world class. As an alternative, the method can return the state of an object being at an offset from where the snake object is with 'getOneObjectAtOffset(int, int, class)' before actually making the move.
teleport between pipes
By kentan, with 17 replies.
Last reply by kentan, over 13 years ago:
thanks you.
Explain these codes plz!
By hkrhässleholm, with 1 reply.
Replied to by davmac, over 13 years ago:
If the width of the world is 500, say, then the possible x coordinates are 0,1,2...499. Because you start counting at 0, there are 500 different values, but the largest one is 499, which is the width minus one.
Infinite Array
By macforce, with 6 replies.
Last reply by davmac, over 13 years ago:
I think you also need to think about what your variables are for. What is bodypart for and what is newSnake for? Why do you need both? Also, what is the newArray() method supposed to do?
How do you do this?
By Game/maniac, with 4 replies.
Last reply by danpost, over 13 years ago:
Import the ScoreBoard class and look at how it does it.
NumberFormat exception
By erdelf, with 10 replies.
Last reply by erdelf, over 13 years ago:
thank you for your help this works now; I was dumb and wrote <Code Omitted>instead of <Code Omitted>
916
917
918
919
920
921
922
X