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
zombies
By tylers, with 1 reply.
Replied to by danpost, over 12 years ago:
Refer to the discussion at http://www.greenfoot.org/topics/740
levels
By tylers, with 1 reply.
Replied to by danpost, over 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 years ago:
//
Vector and smoothmover support classes where.
By Mikeson, with 1 reply.
Replied to by davmac, over 12 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
getColorAt method
By nooby123, with 6 replies.
Last reply by Duta, over 12 years ago:
danpost wrote...
Sorry, I saw the lack of image and went from there, without checking anything else. You know what they say, 'Never assume!'. :< You still got 50% of the fix though, so we forgive you :p
"Saving" the World
By DMCGames, with 1 reply.
Replied to by Duta, over 12 years ago:
Yes - there are probably better methods, but I use the following (I haven't got any uploaded scenarios with multiple levels, but I've made a few) method: Once you're moving on to the next level (with the setWorld(new NextWorldName()) method), pass the objects to the next world in its constructor. In other words, you'd have it like this: setWorld(new NextWorldName(getObjects(null))) and then in the NextWorldName class, you'd obviously have to modify its code so that its constructor takes a java.util.List as a parameter, and then store it. Then, when you want to go back to the first world, you
Moving an object to the Player
By Oneshot, with 2 replies.
Last reply by Duta, over 12 years ago:
Morran wrote...
If you want the zombies to move to the player, you can try something like this:
Duplicating Actors?
By Nate, with 4 replies.
Last reply by Duta, over 12 years ago:
Nate wrote...
Hey, I figured it out. Apparently that particular piece of code needed to be in the original "if" statement in order for it to work. I have no idea why that is seeing as my other buttons worked fine. Oh well.
Maybe because of what I said?
1005
1006
1007
1008
1009
1010
1011
X