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
Using mousePressed
By Mikeson, with 4 replies.
Last reply by Mikeson, over 13 years ago:
Thats Builder boy that the trick. and thanks for the refernce as Im only using greenfoot to learn java.
Sidescrolling with an end
By Blight, with 3 replies.
Last reply by davmac, over 13 years ago:
Well, how does the code keep track of the position within the world (i.e. the amount the background has scrolled)? I'm not looking at the code right now, but I assume there is some variable somewhere which tracks this?
um... My World isn't getting seen by the program?
By NJoson, with 15 replies.
Last reply by NJoson, over 13 years ago:
THANK YOU!!!!!!! I noticed the issue with the WestboundAuto class. The new Road() solved the issue.
whats boolean
By tylers, with 15 replies.
Last reply by danpost, over 13 years ago:
What is line 33 in your last code post?
zombies
By tylers, with 1 reply.
Replied to by danpost, over 13 years ago:
Refer to the discussion at http://www.greenfoot.org/topics/740
levels
By tylers, with 1 reply.
Replied to by danpost, over 13 years ago:
There have been some discussions on this topic already. http://www.greenfoot.org/topics/618 http://www.greenfoot.org/topics/656 http://www.greenfoot.org/topics/668 Just a few I spotted reviewing previous ones.
Scoreboard
By programmer22, with 7 replies.
Last reply by programmer22, over 13 years ago:
just saying but i did that crab crab thing u said and it didnt work so i left my world class the same so the last thing you said i would have to do in order for it to have the right score correct and if so heres my code because when i put in c.getValue() it didnt work said something about not knowing what c is and im still lost on Counter c = w.getCounter(); where would i put that ? like whats confusing me is after you put in a method like: public int getScore() 09.{ return score; } //Then to get the score, you do: c.getScore(); would i put c score in with the rest or what?
maybe found bug in greenfoot
By stevenGrohe, with 2 replies.
Last reply by Duta, over 13 years ago:
Yeah I do this quite often, and its always worked for me
Pop-ups
By Duta, with 7 replies.
Last reply by mjrb4, over 13 years ago:
What you're describing is part of the built in swing classes that are the default UI building toolkit for standard Java programs (at least until Java 8!) The popups are easy to use but as already pointed out they're annoying, look very separate from the Greenfoot scenario and in many browsers the warning triangle that pops up by them to warn you that they're part of an applet can make users a bit suspicious that something else is going on! I've used them a few times but usually changed them to something else later, they might be good as a quick hack but I wouldn't recommend using them perma
Generating Random Color and Brightness
By theDoctor, with 3 replies.
Last reply by DonaldDuck, over 13 years ago:
Just to add to this, you can assign an alpha value to your new color. The color constructor new color(float r, float g, float b, float a) does this. Greenfoot.getRandomNumber returns an int, but it should be converted to a float in the color constructor. If not, it's an easy fix. Change your color constructor to this. <Code Omitted>
platform game
By craigv, with 1 reply.
Replied to by Duta, over 13 years ago:
Have a look at http://www.greenfoot.org/scenarios/3767 - that's how I do it
How to edit a variable of another class
By Oneshot, with 3 replies.
Last reply by Duta, over 13 years ago:
:L I didn't know that, having never read the documentation myself... looks useful though
Unlimited random placing of objects
By Oneshot, with 14 replies.
Last reply by Oneshot, over 13 years ago:
//
Vector and smoothmover support classes where.
By Mikeson, with 1 reply.
Replied to by davmac, over 13 years ago:
I'm not sure what lead you to think that "Vector" would be renamed to "Explosion" - no, the classes have not been renamed. You can find the original SmoothMover and Vector classes in the
asteroids
scenario.
Greenfoot and Kinect
By Darklighter, with no replies.
Hi im trying to run the kinect greenfoot SDK but i cant get past running NiUserTracker everytime i do it just comes up with One or more of the following nodes could not be enumerated: Device: PrimeSense/SensorKinect/5.0.3.4: The device is not connected! I have installed everything like the guide said and my kinect is connected ive tried reinstalling and rebooting and i still cant get it to work
1013
1014
1015
1016
1017
1018
1019
X