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
Help Please, New to Coding
By xJesterPROx, with 5 replies.
Last reply by xJesterPROx, almost 12 years ago:
Thank you! It works!
Keeping variables when a new world is created
By Space0fAids, with 3 replies.
Last reply by danpost, almost 12 years ago:
One way is to have each teleporter object store what world to go to and where the player should be placed in that world. Another way, if you are creating new worlds when the teleporter object is touched, is to have a second constructor in your worlds that have either a boolean parameter so it knows when to spawn the player at a different location or two int parameters for the coordinates to place the player.
getting Null pointer
By berdie, with 6 replies.
Last reply by berdie, almost 12 years ago:
Problem solved!
Two GifImages using just the one gif image class?
By DiplomatikCow, with 1 reply.
Replied to by DiplomatikCow, almost 12 years ago:
Oh never mind, i figured it out........wow.....that was a stupid question....
How to stop objects at world edge
By AA1, with 3 replies.
Last reply by AA1, almost 12 years ago:
Thanks
atWorldEdge() larger distance?
By xFabi, with 2 replies.
Last reply by xFabi, almost 12 years ago:
Worked, thanks ;)
Want to remove Buttons
By Blackdow97, with 6 replies.
Last reply by Blackdow97, almost 12 years ago:
@Danpost Dude for real you help me so much! Sry for my stupid questions, i'm a real noob in Greenfoot....But i make much fun to programm my game. Maybe later i got more questions hopefully someone will still help me^^ :)
Health Bar Class by danpost, How do i make it so it removes health from another class?
By SomeRandomStuff, with 1 reply.
Replied to by SomeRandomStuff, almost 12 years ago:
Wait never mind! I figured it out! Derp :D
Defaulting Game Speed
By n1nikko, with 1 reply.
Replied to by Super_Hippo, almost 12 years ago:
What do you mean by default it? Have it set to a specific position when compiling/resetting the scenario or have it set to a specific position when opening Greenfoot and no other speed was set? If it's the first case, just use 'Greenfoot.setSpeed(some value between 0 and 100);'. The second thing isn't possible I think. The Greenfoot default speed will always be in the middle.
Different exit's interacting with different objects
By berdie, with 6 replies.
Last reply by berdie, almost 12 years ago:
Ty very much was struggling whole day too make this work!
World cell size & centering actors
By fejfo, with 2 replies.
Last reply by fejfo, almost 12 years ago:
My question was quite unclear but I think u answered my question . Thank you
PROBLEMS with using keys to control an actor
By lionkitten, with 2 replies.
Last reply by fejfo, almost 12 years ago:
I don't if it is the problem but in check key press you're if don't have { } try this : public void checkKeyPress() { int speed = 3; if(Greenfoot.isKeyDown("up")) { setLocation(getX(), getY() - speed); } if(Greenfoot.isKeyDown("down")) { setLocation(getX(), getY() + speed); } if(Greenfoot.isKeyDown("left")) { setLocation(getX() - speed, getY()); } if(Greenfoot.isKeyDown("right")) { setLocation(getX() + speed, getY()); } }
Need Help!
By xJesterPROx, with 6 replies.
Last reply by xJesterPROx, almost 12 years ago:
Thanks Guys!!!
Addition game help
By Yukine, with 11 replies.
Last reply by danpost, almost 12 years ago:
Move lines 50 through 55 to right after line 40 (inside the 'if (Greenfoot.mouseClicked(answerbox))' block) You only want to check this when an answer is given.
Greenfoot Does Not Clear Screen
By Kytuzian, with 10 replies.
Last reply by Kytuzian, almost 12 years ago:
Ah, I see. I didn't know that creating a new GreenfootImage() would make it transparent (although now I do see it in the documentation). Thanks for your help
620
621
622
623
624
625
626
X