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
having problems with making a background
By capylego, with 2 replies.
Last reply by capylego, about 11 years ago:
hay thanks it worked
Help bouncing balls
By Nabulion, with 1 reply.
Replied to by Nabulion, about 11 years ago:
Figured it out myself :D Just needed to add: if (hitTopWall()){ Vel = Vel.horizontalFlip(); ect.
Life Scenario Help
By JasonZhu, with 38 replies.
Last reply by JasonZhu, about 11 years ago:
Oh. That simple error... I need to start catching these myself. It's funny because I remember trying that before... Anyway... It's working exactly how I want now. I'd like to thank everyone who was kind in heart to give me advice!
Switching actor
By Mishti, with 3 replies.
Last reply by danpost, about 11 years ago:
I would have a Tornado class and a Unicorn class (as well as the Zebra class) and use the counter in the Tornado class which would add a new Unicorn object and remove itself after the timer has elapsed (just as the Zebra would add a new Tornado object and remove itself if the '1' key was pressed. In the above code, as long as the '1' key is being held, the counter will stay at 300. And, if the '1' key is pressed again before the counter reaches 0, it will reset back to 300. The explosion code may have to be moved (I do not know what state the Zebra object, that could be a tornado or uni
How to let object spawn randomly after a certain time
By Syntac, with 12 replies.
Last reply by danpost, about 11 years ago:
There are several ways to implement the removal of a start screen. (1) Have your start-up screen be your start screen and when the player clicks on the 'Run' button, change the background and add the actors; (2) Have your start screen removed when a key or mouse click is registered (if you prefer the mouse click be on a button, it can be an actor or drawn on the background; the detection of the click and how it was coded would be different depending on which way you go); (3) Have the start-up screen removed after so many act cycles have run or after so much time has elapsed. Using a differ
Greenfoot error
By johnfisher, with 1 reply.
Replied to by Gevater_Tod4711, about 11 years ago:
The latest java and a java JDK are two different things. You probably have the runtime enviroment but you need the developing kit (JDK).
Here
you can find a downloadlink for the JDK.
help with optimizing code
By wabuilderman, with 17 replies.
Last reply by danpost, about 11 years ago:
danpost wrote...
Try limiting the range of darkness and lightness to between 0 and 100 and use the following for the value of tint: tint = 255-255*((100-darkness)+lightness)/200;
This was a change I made in one of the other discussion threads. change '(255-lightness)*darkness/255' in lines 123 and 124 with the expression on the right side of the 'tint' equation and change the limits on lightness and darkness to between 0 and 100.
Scrolling Engine only scrolls first class in the array????
By Entity1037, with 3 replies.
Last reply by danpost, about 11 years ago:
Usage of the other 'for' method, the List iterator 'for', could have avoided this: <Code Omitted>
camera following actor
By wabuilderman, with 2 replies.
Last reply by FlyingRabidUnicornPig, about 11 years ago:
There are several scenarios that people have made that follows the main actor, or moves the screen based off the player's movement. The two I've used include:
danpost's Scrolling SuperWorld
and
SPower's Scrolling world
Hoped that helped!
Help in general with my game so i don't make 15 discussions
By wabuilderman, with 1 reply.
Replied to by wabuilderman, about 11 years ago:
can anybody please help me with my problem?
Too small World window (with scrollbars)
By lehrer.janssen, with no replies.
Hello together, does anyone have a solution for the problem shown in the image below? Greenfoot does not show the normal GUI. Instead it shows a small window with scrolbars that does not show the whole world. The problem occurs on all PCs in my school (all come with Win XP SP3). Also, Greenfoot does not automatically refresh when a subclass is generated - but this is not as bad as the main problem. <Image Omitted> Thanks a lot.
Help with dynamic grid lighting.
By wabuilderman, with 32 replies.
Last reply by Kartoffelbrot, about 11 years ago:
I haven't read all your entries. If my comment is useless ignore it, please. I have used GreenfootImages to create light. I gave them a color, which is a bit transparent. Then I placed them onto all the other actors. Therefore I used an own class. So you can see everything through them, but with the colored "light".
Converting GreenfootImage to png
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, about 11 years ago:
Mache ich mal.
Multiple Objects
By alagon, with 2 replies.
Last reply by alagon, about 11 years ago:
Thank you for the quick response! It worked! Thank you!
Livestream: 2D RPG
By Firewall, with 1 reply.
Replied to by JetLennit, about 11 years ago:
Is this for the challenge?
788
789
790
791
792
793
794
X