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
Mouse Buttons
By Pointifix, with 50 replies.
Last reply by danpost, over 12 years ago:
Pointifix wrote...
mhhmm but seams to be more difficoult, map creating should go fast ;)
I did not say I did it that way; just that it might have been better to do it that way.
Turn Object to direction of mouse
By PStigerID, with 23 replies.
Last reply by danpost, over 12 years ago:
Kampf-Keks-Studios wrote...
For those of you, who has not so specific knowlage: turnTowards(Greenfoot.getMouseInfo().getX(),Greenfoot.getMouseInfo().getY()); //Why be difficult, when it can be simple
Still have to check and make sure the MouseInfo object returned is not 'null' or exceptions will ensue.
Scrolling world help
By Jonche, with 4 replies.
Last reply by Jonche, over 12 years ago:
Oh, thanks danpost, never seen that actually lol
Mistake at drawing?
By Pointifix, with 24 replies.
Last reply by Pointifix, over 12 years ago:
ok solved, thanks a lot again ;)
help with 'while' loops
By berzerker, with 2 replies.
Last reply by elias.groll, over 12 years ago:
"Kara" is made for education in deterministic mashines so u probably have to create a deterministic mashine first (if u had that in school or want to impress ur teacher :P) So your while loop could go like this( dont know if it really works i havent testet it it was just my first thought :P): while(remainingFieldsToRepair()) /* or for(int x = remainingFields();x > -1; x++) */ { if(treeInFrontOfKara){ turnLeft(); } else if(emptyFieldOnTheRightSideOfKara){ turnRight(); goForwards(); putACloverleafOnTheGround();
Updating an ordered fixed list(fixed)
By JasonZhu, with 10 replies.
Last reply by danpost, over 12 years ago:
In the first two methods, you can change the score comparison from '<' to '<=' to fix the ranking of equal scores. <Code Omitted>
Create image from "Dead" object
By miniclausen1995, with 3 replies.
Last reply by danpost, over 12 years ago:
Those are really not loops since you 'break' from them immediately. I would call them un-glorified 'if's. You could change all instances of 'while' to 'if' and remove all the 'break' statements. However, this is still more than is needed. You could simplify the method down to two lines of code within the method block with the following: <Code Omitted>or even to one line with this: <Code Omitted>
Changing Variables
By Hersov, with 39 replies.
Last reply by xxMADBROxx, over 12 years ago:
.
How do i create a button to work in my game?
By hannah_copeland, with 5 replies.
Last reply by AWESOME-CODING, over 12 years ago:
:)
Asign Key Up?
By Pointifix, with 5 replies.
Last reply by Pointifix, over 12 years ago:
r, g, b, and alpha ? k thanks
Shoot Score
By pr2alede, with 1 reply.
Replied to by danpost, over 12 years ago:
Do you not think it might be important to include the code for your Score class also (since that is where the field is located)?
import sound
By colec046, with 2 replies.
Last reply by Pointifix, over 12 years ago:
just copy all your sound files into the folder sounds in your project folder, then you can use them in your code with Greenfoot.playSound("sound.mp3"); or song.playLoop(); if song is an GreenfootSound. For more look at the Greenfoot API
JCreator: bad source file (when it's not)??
By Entity1037, with 4 replies.
Last reply by lordhershey, over 12 years ago:
I think you input handler needs a Boolean array of 256 codes. and change this: <Code Omitted> to this: <Code Omitted>
I need help am stuck
By Kabaka, with 13 replies.
Last reply by danpost, over 12 years ago:
@scottpj3, please start a new discussion for that issue. Also, explain better, in detail, exactly what you are having problems with in the coding of the man. And show some attempted code.
Where can i get free images online for my game??
By kzg0015, with 3 replies.
Last reply by lordhershey, over 12 years ago:
The things at http://www.reinerstilesets.de are great. I want to make something with those train cars and buildings, like a virtual train set or something. I had always drawn my own stuff, but it looks primitive. I do let people use the graphics I have made. I need to put them in a public drop box folder.
718
719
720
721
722
723
724
X