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
How do you set the world using buttons that the mouse clicks on?
By LonelyCreeper, with 2 replies.
Last reply by LonelyCreeper, over 11 years ago:
Oh I solved it. Thanks anyways though.
How to set world at beginning of game
By LonelyCreeper, with 2 replies.
Last reply by LonelyCreeper, over 11 years ago:
Thanks!
Image comparison
By Minion1, with 3 replies.
Last reply by danpost, over 11 years ago:
You could set up an array to map the world. It could be of 'int', 'String' or 'char' type (guess it could even be of 'Class' type -- not that I would recomend it). This map could be used not only to create the initial background, but also to determine what is where during game play. Another possibility is to use color detection to determine what is where. This would involve breaking the color up into its primary color components and checking the values for certain ranges to distinguish between the different types of terrain (brown=mountain, blue=water, tan=dirt, green=grass
Gravity
By sametguzelgun, with 2 replies.
Last reply by sametguzelgun, over 11 years ago:
Thank you.
ifOnGround() won't work??
By AnneMacaroni, with 1 reply.
Replied to by AnneMacaroni, over 11 years ago:
btw, is there a way to delete discussions?
Making loop for an animation of 100 images in series
By camsterb, with 3 replies.
Last reply by camsterb, over 11 years ago:
Hi. Yep, just putting in +i+ between closed quotations worked very nicely. Thanks a lot for the clarification and the hard work as always! :D
Hit twice
By TheStop, with 4 replies.
Last reply by danpost, over 11 years ago:
Actually, what I was saying was that the boolean tracks whether it has been hit once or not. <Code Omitted>Just call 'checkHit();' from the 'act' method.
Constructor issue
By BradH, with 2 replies.
Last reply by BradH, over 11 years ago:
Ok, that makes sense, thanks
Variable construction of Objects
By JimmyFake, with 7 replies.
Last reply by danpost, over 11 years ago:
If you want any insight into it, it involved working with the 'Class' API using the 'newInstance' method which will require some knowledge of working with exceptions. It would be something like the following: <Code Omitted>However, this would require passing classes instead of strings.
Help please - worked but now have compiling error :(
By Ethan243, with 4 replies.
Last reply by Ethan243, over 11 years ago:
Thanks so much for the quick and helpful replies - really appreciate it! It's working great now. :)
Is it possible, to implement a video in my game?
By moobe, with no replies.
Hi, I'd like to add a video at the beginning of my game (As main menu). Is that possible? Here's the vid on YouTube. https://www.youtube.com/watch?v=twnRFBTEaXc
How do you contact other people?
By Minion1, with 2 replies.
Last reply by Minion1, over 11 years ago:
Ah. Such a shame. This community could benefit from a good communication system. Thanks for the reference to the scenario. I might end up using it.
NullPointerException
By erdelf, with 34 replies.
Last reply by erdelf, over 11 years ago:
nope I change a bit the code in the missile.
How do i make one screen before another?
By Oxy, with 11 replies.
Last reply by Oxy, over 11 years ago:
oh excitement! Thank you Danpost. I had that before because I thought i needed it to stop one world so the other could appear. Much appreciated.
the world doesn't show up when compiled?
By AnneMacaroni, with 8 replies.
Last reply by danpost, over 11 years ago:
First, you need an 'act' method to call the methods you have in the class. Plus, there is no condition coded to start a jump; and there is not any code for horizonal movement of the Dog object. One more thing, the logic in 'checkFall' seems to be amiss.
888
889
890
891
892
893
894
X