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
Checking if a class is abstract
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, about 11 years ago:
Thank you :)
SetPaintOrder problem
By Draymothisk, with 1 reply.
Replied to by davmac, about 11 years ago:
My code works properly until I use "setPaintOrder" in my world, then it seems the act method on some of my Actors' stops working as a result
That sounds pretty unlikely. More detail needed.
how do i make something only appear out of the bush once
By murraycod, with 4 replies.
Last reply by GreenGoo, about 11 years ago:
Heck, missed a bit. You get the idea though. Then once the pokemon has been killed/ knocked out, set it to false again. Just make sure to set pokemonPresent to true in each case.
Terminal window
By sharifahhilwa, with 2 replies.
Last reply by sharifahhilwa, about 11 years ago:
got it!! Thankss
How to keep up frame rates
By Artyoum, with 11 replies.
Last reply by Artyoum, about 11 years ago:
Oh, ok, I get it. Simply put, All I may have to do is just remove the methods which scroll the background and just leave the ones which scroll the objects; something around that area, yes?
add rectangle and fading
By davemib123, with 1 reply.
Replied to by davemib123, about 11 years ago:
nevermind, think I have it done :D
adding text
By davemib123, with 7 replies.
Last reply by davemib123, about 11 years ago:
thanks. i'll give it a go.
Help?!
By GreenGoo, with 5 replies.
Last reply by GreenGoo, about 11 years ago:
The blog concerns exactly what I was trying to do on other question... Thanks, it will be a real help.
Using setLocation() or some variant with doubles?
By GreenGoo, with 12 replies.
Last reply by GreenGoo, about 11 years ago:
Okay thanks for the help, I've found it. Yeah that code was very very rough, I just wanted to get some idea of what I should do and see how it looked. Thanks again!
Collision Detection Issues
By ddemarco06, with 68 replies.
Last reply by danpost, about 11 years ago:
Maybe you should show what code you are using in your space world and your congratulations screen class.
Greenfoot download
By RickMurphy, with 2 replies.
Last reply by lordhershey, about 11 years ago:
I think they do not understand that all of this sits on top of Java, and I took it as a give up message. :/
'n must be positive' error
By Dab1001, with 2 replies.
Last reply by Dab1001, about 11 years ago:
danpost wrote...
If the rotation is greater than 199, which will occur when you think the rotation is between -160 and -1, then you will be trying to get a random number using an argument less than one; hence the error. The rotation returned using the Actor class method 'getRotation' will be a number between zero and 359, inclusive. You should reformulate your maths based on this. Maybe use something like this for line 53: <Code Omitted>Between -90 and -1 (or 270 and 359), dripSpawnChance will be between 10 and 99. Between 0 and 180, dripSpawnChanc
Referencing 'Other Classes'-type Classes in Worlds
By Dab1001, with 6 replies.
Last reply by Dab1001, about 11 years ago:
danpost wrote...
I think you would need to add an instance Boolean and set it when the button is found pressed and unset it when a click action for that button is detected. I have not tested it out completely, but something like:
Specific Location
By roeilthegreat, with 4 replies.
Last reply by roeilthegreat, about 11 years ago:
Wow. That code works exactly how I originally imagined my scene. Thanks a lot!
Need Help Shifting Health Between Levels
By BobFisher3, with 5 replies.
Last reply by danpost, about 11 years ago:
FYI, I have a
Super Level Support Class
you may be interested in looking over. It illustrates some of the things reviewed here.
656
657
658
659
660
661
662
X