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
Delaying time before each object is created?
By henrYoda, with 6 replies.
Last reply by Oxy, almost 13 years ago:
easy you will notice i put in a variable name waitTime and its = to 10. to increase the time between each shot, increase the variable. so instead of private final int waitTime = 10; do private final int waitTime = 20; if you implemented that variable like i did. then changing that one variable will change the speed for all direction bullets.
help with platforms (not the game just the object)
By TheWelshGamer, with 2 replies.
Last reply by TheWelshGamer, almost 13 years ago:
all would be preferable thanks.
Multiply by 2
By SunnyD212, with 1 reply.
Replied to by danpost, almost 13 years ago:
What about: <Code Omitted>
Editor White blocks
By Jelle.ca, with 4 replies.
Last reply by Jelle.ca, almost 13 years ago:
Nope not it. And now I notice Almost everything in the entire program might just suddenly dissapear. The bar to get to preferences was gone until I clicked on it. Then it turned visible. It's not that my text turns white actually, I think (parts of) it's just not displayed, and then it is, and then it isn't. As soon as I do anything (click, type, ...) some things go missing and some come back.
Problem
By jayj1109, with 5 replies.
Last reply by mjrb4, almost 13 years ago:
I've seen a similar error before (not in Greenfoot) if I remember rightly, when the same port was being used elsewhere. With that in mind, only other thing I can think of would be to shut every other program down (including any system utilities running in the background) and then try again. If that does solve the problem try re-introducing the programs one by one to see which one is the culprit.
need help
By Abdi, with 1 reply.
Replied to by danpost, almost 13 years ago:
It would probably be better to use 'Actor.class' (or the actual name of the class belonging to the object you want removed) instead of 'Object.class' in the above. However, if you are going to just re-introduce another object of the same type as the one removed, do not remove or add, but just re-locate the actor found: <Code Omitted>
Chapter 6, page 89, Greenfoot book, international edition
By allekalle, with 8 replies.
Last reply by allekalle, almost 13 years ago:
Ok! I can't say it's crystal clear yet, but I'm getting there. :-) In the example in the book on pages 89 onwards, the world object is not defined (or referred to by a variable) anywhere in the body class, which means it is necessary to use a method that returns the variable (in a List in this case) referring to the object (?). Thanks!
Need Help with Egoshooter
By Abdi, with 3 replies.
Last reply by Abdi, almost 13 years ago:
thanks a lot it works now :)
NEED HELP WITH SOUND LOOP !! PLS HELP
By Prish950, with 9 replies.
Last reply by Prish950, almost 13 years ago:
i fixed it :D Thanks so much :D
MARIO WINS SCREEN NEED HELP!!
By Prish950, with 2 replies.
Last reply by Prish950, almost 13 years ago:
it solved :D i take the luigi dead off and the getObjects(Bomber1.class).isEmpty(); in the if function
How do I call a variable from another class?
By ajamesc97, with 1 reply.
Replied to by davmac, almost 13 years ago:
See tutorial #6 (under Documentation).
Clicking on an object
By Gingervitis, with 32 replies.
Last reply by Gingervitis, almost 13 years ago:
If you want, you can re-write the code.... I can then see what you wrote for future things. How do you think my programming is for a High-schooler that started Greenfoot in January?
How stop sound ?
By TomazVDSN, with 10 replies.
Last reply by TomazVDSN, almost 13 years ago:
Never Mind, I did find my way around and I did publish a version of how I did it. I apprecite any comment on
backGroundMusic
IF HE IS DEAD !!!! HELP???
By Prish950, with no replies.
I have a Question how can i write: if Object.class is removed set background, ("winner") so i want if he is dead that the picture is set. I wrote for that <Code Omitted> and now im wondering how to make a boolean to check that if he is not on my world winner mario(); pls help thanks.
Shoot a projectile (bullet) towards mouse location
By kole9273, with 4 replies.
Last reply by danpost, almost 13 years ago:
Another field problem is that I do not see where 'mouse' gets assigned anything. To simplify things, getting mouse.getX() and mouse.getY() could be put directly in the 'shoot' method. This removes the issue of passing x and y to the shoot method. Your new code would be something like:
875
876
877
878
879
880
881
X