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
Nullpointer exception to nothing?
By Minion1, with 10 replies.
Last reply by actinium, almost 14 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, almost 14 years ago:
oh, thank you
wrong values
By erdelf, with 5 replies.
Last reply by erdelf, almost 14 years ago:
thx danpost. it works without problems now
Drawing text on screen
By -nic-, with 6 replies.
Last reply by -nic-, almost 14 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, almost 14 years ago:
thanks got it
getColorAt() doesn't work out
By Mux, with 8 replies.
Last reply by Mux, almost 14 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-, almost 14 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, almost 14 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, almost 14 years ago:
thanks you.
Explain these codes plz!
By hkrhässleholm, with 1 reply.
Replied to by davmac, almost 14 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, almost 14 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, almost 14 years ago:
Import the ScoreBoard class and look at how it does it.
NumberFormat exception
By erdelf, with 10 replies.
Last reply by erdelf, almost 14 years ago:
thank you for your help this works now; I was dumb and wrote <Code Omitted>instead of <Code Omitted>
add random obstacle
By Tezuka, with 10 replies.
Last reply by Tezuka, almost 14 years ago:
ok thx now i got it
Screen Wraping
By bbwf, with 3 replies.
Last reply by bbwf, almost 14 years ago:
Got it THANKS!
917
918
919
920
921
922
923
X