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
Minor improvement to SmoothMover: rotation as double
By TheGoldenProof, with 1 reply.
Replied to by danpost, over 7 years ago:
My
QActor
class, which provides smooth moving by allowing fractional moving has fractional rotation as well. See my
Smooth Mover Demo
scenario.
Laser Limit
By Celesterra, with 14 replies.
Last reply by Celesterra, over 7 years ago:
Thank you very much!
I cannot get the wombat to shoot in the direction its facing. It only shoots to the right.
By Rawlfish, with 9 replies.
Last reply by Rawlfish, over 7 years ago:
Now I just need to get a life counter and make the leaves give the wombat health back.... lol
Help with excercise 9.73 from "Michael Kölling Introduciton to Greenfoot"
By MKO, with 1 reply.
Replied to by danpost, over 7 years ago:
You want to show a value that goes from 0 to 100 (a percent value) to indicate how recharged the proton wave firing state is. You probably would want to use a loading bar type object which will show the progress visually instead of using text. Please refer to my
Value Display Tutorial
scenario.
Help with actor movements
By fvila02, with 6 replies.
Last reply by fvila02, over 7 years ago:
Thank you so much that helped a lot i modified it a little bit and make it into 2 if statements and added some code and it works perfectly now! Thanks a lot for the help!
Hello, can anyone help with this error pls?
By Night, with 2 replies.
Last reply by Night, over 7 years ago:
thx :D
how can I add selected actor in another world?
By Tasya16, with 26 replies.
Last reply by Tasya16, over 7 years ago:
you are AWESOME
Greenfoot does NOT like it when you rotate the background image
By TheGoldenProof, with no replies.
i used some simple code to try to rotate the background by one degree every 60 frames: <Code Omitted> and this is what happened (photo taken after playing for some time) : <Image Omitted> I'm not here to complain... I just thought this was worth laughing at.
Collision not working after adding some shaking to the Actor
By lubna_1988, with 3 replies.
Last reply by danpost, over 7 years ago:
lubna_1988 wrote...
Regarding the initialOffset field, I did not get your point.
My point is the there is a one-to-one correlation between the value of the
initialOffset
field and what would be returned by using the
getRotation
method. Because this is the case here, you really do not need that field. You can just use the returned value from the method, either directly or in some simple expression, to get the value of what the field would contain.
Random Rotation
By AdiBak, with 4 replies.
Last reply by AdiBak, over 7 years ago:
Thanks, it worked!
Side Scrolling in respect to character location
By ckverdad, with 1 reply.
Replied to by danpost, over 7 years ago:
You should probably check out my
Scrolling Tutorial
scenario.
Score
By Hundmat, with 2 replies.
Last reply by Hundmat, over 7 years ago:
Okey, thank you!
how to make a game end when an actor touches a color
By Nico_ti, with 12 replies.
Last reply by danpost, over 7 years ago:
You can use the line I gave above by replacing
trailColor
with
Color.RED
or
Color.BLUE
.
Mouse click only does action once
By tqqdqq, with 3 replies.
Last reply by tqqdqq, over 7 years ago:
Thank you so much! That fixed it. And wow, thank you for the statistics, I'd just set the value randomly while troubleshooting this so I most likely would've fixed it, but it's interesting to know the exact percentage nonetheless. For the record though, it does move and it also has the same percent chance of removing the "opponent" actor, so it's interesting to see which one "wins." Regardless, thank you for the help.
Need help making bubbles appear on diagonal line & move from top left corner to bottom right & the last bubble end at coordinates 900,600.
By Dexadashd, with 3 replies.
Last reply by danpost, over 7 years ago:
With a rotation of 33 degrees, moving at a rate of 4 pixels per act, an actor will take a direct route between the two corners. To place an actor randomly, but exactly on the diagonal, take any random value less than 300 and multiply it by 3 for the x and multiply it by 2 for the y, to be where to add the actor into the world. Keep in mind that the actor will never be at exactly (900, 600) as the lower right corner is at (899, 599).
193
194
195
196
197
198
199
X