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
Coding a moving Centipede
By Kevin_Bacon, with 2 replies.
Last reply by danpost, over 12 years ago:
Download my
Snake Demo
scenario to get an idea of how to play follow the leader. In this scenario, each segment has a reference to the segment that follow it. But, I felt it would probably be easier for a less experienced programmer to just have the segment keep track of the location that it has moved from (which would be the location of the segment following it, if there is one).
PROBLEM!
By popiroprios, with 1 reply.
Replied to by danpost, over 12 years ago:
Looks like you need help on several fronts, but, in this case, mainly your 'switch' block. Actually, the block is set up properly, however, what you are doing inside puzzles me. You probably should remove the 'while's and you probably want to add a 'break;' after each addObject method call. I think you want the following for line 10 <Code Omitted>Also, you can remove line 4.
While Loop problems with sound
By drpotts2000, with 6 replies.
Last reply by drpotts2000, over 12 years ago:
Thank you for all the help. I really appreciate it.
Changing levels
By BradH, with 9 replies.
Last reply by BradH, over 12 years ago:
Ok, I will check it out,thanks
Tic Tac Toe Finding Winner
By kaciedy, with 4 replies.
Last reply by kaciedy, over 12 years ago:
That makes a lot of sense even if I would have never thought of it. Thank you so very very much.
Intro Video
By SimpleJack, with 3 replies.
Last reply by erdelf, over 12 years ago:
I mean, do you want a move file like mp4 or avi to run or a gliding text or something else?
It's my first time in here.
By IcaroCunha, with 5 replies.
Last reply by danpost, over 12 years ago:
It probably would best for you to go over some of the Java trails (tutorials). You can find them
here
. The second section on the left (Trails Covering the Basics) would be the place to start.
Greenfoot not working :(
By drhorriblejr, with 8 replies.
Last reply by davmac, over 12 years ago:
drhorriblejr: try
clearing your Java plugin cache
.
Multi-room worlds possible?
By MandolinBee, with 5 replies.
Last reply by Upupzealot, over 12 years ago:
What a great parent! I can't imagine study how to program with my mom.(Ok, I'm an adult now) I can tell you surely that what you said is possible. If you need any help, just tell me. For the current question, I think you may write a class which is a "room", or use the World class like a "room". Maybe what you need is just the method Greenfoot.setWorld(World). BTW, make full use of Greenfoot's API, it's very clear with every function Greenfoot is offering. You can see it by double clicking the Actor or World class from the classes bar in Greenfoot.My suggestion is always come here and di
HELP!
By popiroprios, with 3 replies.
Last reply by danpost, over 12 years ago:
You are still being very vague. Be specific and show some attempted code at what you are trying to do.
Menu question
By BradH, with 1 reply.
Replied to by erdelf, over 12 years ago:
To make a menu look at this scenario: http://www.greenfoot.org/scenarios/5679 For the world transition use this command: <Code Omitted>
Need help on setting bold text.
By Jrm1715, with 11 replies.
Last reply by Jrm1715, over 12 years ago:
Thank you. Makes a lot more sense to just use the actor object. Appreciate the help!
Scroll world problem
By treinentom, with 33 replies.
Last reply by SPower, over 12 years ago:
Ik heb door uw code gelezen, en ik denk dat de move statements in de of statements niet nodig zijn. Misschien ziet dat er wat beter uit. En u zei dat de platforms niet met de camera meebewegen als de camera beweegt, dat is logisch als je het object toevoegt mrt de normale addObject methode. Als u wilt dat ze samen met de camera bewegen, gebruik dan de addCameraFollower methode. Onthoud wel dat de gegeven argumenten daar gezien zijn vanaf de camera, dus 0,0 zal in het midden van het scherm komen.
Jump Problems
By StaetheWolfe, with 5 replies.
Last reply by StaetheWolfe, over 12 years ago:
onGroud() returns true when the it looks like it is touching the ground. It also returns true when it is a lot higher than the ground. If I place the actor where onGround() returns false, it falls to where it recognizes ground (not where the image of ground is) and when the up arrow key is pressed, proceeds to do nothing. Changing ySpeed=1 does the same thing.
PONGER
By DOGGY, with 11 replies.
Last reply by SPower, over 12 years ago:
For all the english people, I'm explaining what went wrong :) Eerst ff uitleggen: Je kan een object met een bepaalde naam maar 1 keer maken, je moet de volgende dus een andere naam geven. Als voorbeeld: <Code Omitted>op deze manier wordt het batje genaamd bat2 aan de rechterkant toegevoegd, 30 pixels van de rand (je denkt zeker, waarom zeg je dan '-31'??!! nou, dat komt omdat de coordinaten vanaf 0 beginnen te tellen, dus helemaal a
925
926
927
928
929
930
931
X