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
Label size
By zobear888, with 4 replies.
Last reply by zobear888, over 10 years ago:
Thank You!Here is the url to my finished game! http://www.greenfoot.org/scenarios/16534
How to program greenfoot in eclipse?
By GaluhPermana, with 1 reply.
Replied to by trimil, over 10 years ago:
Not to my knowledge, why can't you just program it in Greenfoot?
Help, too many enemies spawning
By NakedSnakeCQC, with 4 replies.
Last reply by NakedSnakeCQC, over 10 years ago:
Thank you very much I have my spawning working perfectly now i will post the code i have used as it is a mixture of the code i already had and what you sent me and again thank you very much.
So i want it to be if something is touching gaster it does something but i dont have the health set up yet so please help
By Walker, with 1 reply.
Replied to by danpost, over 10 years ago:
<Code Omitted>That is all that can be supplied at this time with what you show. You should set up the health before anything more can be done here. There are plenty of discussion thread on setting up health for an actor. Just run a search in the title bar above.
getHeight Nullpointerexception
By Lordkallad, with 3 replies.
Last reply by danpost, over 10 years ago:
@umer, yours is a totally different type of issue. It has nothing in common with the discussion so far. Why would you post your issue here and not start a new discussion thread? Also, you need to be more specific as to what you are having problems with. As is, it appears you want us to do your homework for you. There is another recent discussion that discusses the use of the DecimalFormat class; so you could check that out as far as its use is concerned.
Online Score command
By AngelusNeko13, with 1 reply.
Replied to by danpost, over 10 years ago:
There is a ScoreBoard class that you can import. From the menubar, select "Edit>Import class..." and choose the ScoreBoard class. It explains how to save high scores as well.
how can I get a money format?
By tRapkIng, with 1 reply.
Replied to by danpost, over 10 years ago:
You can use (import first) the java.text.DecimalFormat class and then use the following lines of code: <Code Omitted>supplying the 'amount' (money value).
help with score counter
By AdamSteele, with 1 reply.
Replied to by danpost, over 10 years ago:
Line 6 declares a local variable of type 'myworld' called 'space'. Yet, when trying to get the counter on line 7, you use 'myWorld' which is declared as a 'World' object on line 4. Since the counter is in the 'myWorld' class, you cannot use a variable of type World to access it.
How to tell if all of one class is null inside the world?
By Fadawar, with 2 replies.
Last reply by Fadawar, over 10 years ago:
Thank you!!
My character keeps falling through the platform
By AdamSteele, with 1 reply.
Replied to by danpost, over 10 years ago:
The main problem that beginners have when creating a "jump-n-run" type scenario is that they do not account for the vertical direction of movement when performing collision checking. The direction of movement will determine whether the jumper should be positioned above or below the object collided with. In either case, the vertical speed should be reset to zero. In your code, I do not see any repositioning of the jumper when a collision occurs. Also, your 'onGround' method does not really determine if the platform is really 'under' the jumper. By using the sign of the vertical speed (the
Setting up a vertical background scroll
By wslade, with 3 replies.
Last reply by danpost, over 10 years ago:
wslade wrote...
Okay, thanks! I had done a google search and it was from a previous
discussion
. I guess it was from some time ago.
Yeah. I found it. it was almost 3 years ago.
How do I make the player strafe left and right?
By RedCreeper, with 8 replies.
Last reply by RedCreeper, over 10 years ago:
Sorry, It seems that the code works now, for some reason my computer wasn't responding to the code and with a restart of greenfoot it seems to work. Thank you!!
2 Actors will not have the same X-Position value
By Decapitated, with 4 replies.
Last reply by Decapitated, over 10 years ago:
Fix: I just had the "bird" on a certain X so as the pipe went <Code Omitted> it would end up meeting. "Bird" code:
Shooting; setting rotation of bullet?
By alexanderwrobinson, with 3 replies.
Last reply by danpost, over 10 years ago:
alexanderwrobinson wrote...
Thanks! this was exactly what I need, how would I now put a delay on each bullet shot, such as shoot a bullet wait a second shoot another etc. ?
Add an instance int field to be used as a timer (count act cycles to track the sense of time passage). If its value is zero, the actor can fire a bullet. When a bullet is fired, set the value of the timer to, say -- '50'. Add a line in the act method that decreases the value of the timer if its value is greater than zero.
Kara Sokoban scenario upload
By danpost, with no replies.
Hey everyone, I have set a two week limit on voting on my
Poll Taker
scenario. The issue is whether I should upload a remake of the 108 level
Kara Sokoban
scenario RoyalFool has on this site. The main differences are as follows: * of course, the no code or images where taken from the scenario by RoyalFool * mine does not compare different users scores; * mine shows your best as well as known best scores for levels after completion; * mine does not have codes to access levels; but tracks your progress, saving it when signed in on the site, and opens each level as you complete the one prior to it; Vote while you can !!! EDIT: I know this should be under 'Other' and not 'Programming'. In fact, I had clicked on the Other icon when I started editing; however, when I left the page and returned when getting a link, it seemed to have reset back to 'Programming' (which I did not notice until after it was posted). Maybe the 'Edit' on an initial discussion post should allow modifying the Title and the Category as well.
474
475
476
477
478
479
480
X