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 is the world divided in cells? Problems with getObjectsInRange()
By JimmyFake, with 7 replies.
Last reply by JimmyFake, almost 13 years ago:
I had some time, to try out what you posted danpost. My assumption was right, even though I may have expressed myself, incorrectly. For now the ObjectsInRange method works better for me, because an circular radius is fine for now, and the code is simpler. And thanks to GevaterTod, I do now know, how to use that command :) But if I want to adapt the area of the radius, because of some reasons that might appear in future, your advice would come in handy, danpost. Thank you both, again :D
How do I get the direction an Actor is moving?
By Oxy, with 3 replies.
Last reply by Oxy, almost 13 years ago:
yup, that was what the problem was thanks danPost
incompatible types
By KierTulp, with 13 replies.
Last reply by vonmeth, almost 13 years ago:
Edit: nm
incompatible types with range
By KierTulp, with 2 replies.
Last reply by Gevater_Tod4711, almost 13 years ago:
If you want to prove if there is an object type uman near you, you should change the method like this: <Code Omitted>
How do you set the world using buttons that the mouse clicks on?
By LonelyCreeper, with 2 replies.
Last reply by LonelyCreeper, almost 13 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, almost 13 years ago:
Thanks!
Image comparison
By Minion1, with 3 replies.
Last reply by danpost, almost 13 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, almost 13 years ago:
Thank you.
ifOnGround() won't work??
By AnneMacaroni, with 1 reply.
Replied to by AnneMacaroni, almost 13 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, almost 13 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, almost 13 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, almost 13 years ago:
Ok, that makes sense, thanks
Variable construction of Objects
By JimmyFake, with 7 replies.
Last reply by danpost, almost 13 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, almost 13 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
899
900
901
902
903
904
905
X