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 with mouse control
By SP00F3R, with 4 replies.
Last reply by SP00F3R, over 12 years ago:
I rotated the image of the character and it works perfect, thanks a lot for the help.
Creating an object creates a null pointer exception?
By -nic-, with 3 replies.
Last reply by -nic-, over 12 years ago:
Thanks Danpost and Vonmeth
Help for school project
By mitch2209, with 1 reply.
Replied to by danpost, over 12 years ago:
Things you will need: - the alphabet: public static final String ABCs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - a start time: private long startTime; (set when first keystroke is detected, otherwise equals zero) - a score: private int matches; (the number of correct keystrokes) - a counter: private int attempts; (the number of actual keystrokes -- right or wrong) Plus, you will need to keep track of the currently displayed letter: - the letter: private String letter = ""; Things you will need to do: - get a random letter - catch a keystroke - compare any keystrokes returned (if
zoom in and out in mid-execution
By Ethan243, with 1 reply.
Replied to by danpost, over 12 years ago:
A progressive zoom feature would be nice, but would require some experience with programming to accomplish. An instant zoom feature would be a bit easier to program, but is still somewhat involved (depending on what kind of scenario you are writing). You would need a world instance field of a numeric type to track the current zoom value ('int' for instant zoom or 'double' for progressive), and everything (and I mean everything -- the background and all the actor objects) will have to use that value to determine their size and their location in the world. To complicate matters worse, if you
updating the score variable
By sametguzelgun, with 3 replies.
Last reply by danpost, over 12 years ago:
You do not need another class (the 'Add' class in this case) to update the 'Score' class. Remove the 'Add' class and change the 'Score' class to the following:
Shooting with mouse?
By Maddin, with 1 reply.
Replied to by danpost, over 12 years ago:
What do you mean by 'there is no holdingMouse feature'? Please explain what you are trying to do? What action are you trying to program with the mouse?
Slope Program
By DPD4AU, with 2 replies.
Last reply by DPD4AU, over 12 years ago:
Nah not in greenfoot, but in jGRASP, I figured you guys could help out with java though, i figured out the code:
tictactoe
By sirjustinhe, with 1 reply.
Replied to by danpost, over 12 years ago:
(1) what is the size of your world (show your 'super' statement) (2) what is the size of your tic-tac-toe grid area (in pixels) (3) where is your grid located in the world
world map/level editor
By ronzhi, with 2 replies.
Last reply by ronzhi, over 12 years ago:
wow nice..thanks danpost i never thought about that :D
Greenfoot modulo
By moobe, with 2 replies.
Last reply by moobe, over 12 years ago:
Oh, I didn't know that, I'm sorry. But it works fine now, thank you!
set speed for single actor
By bonana, with 8 replies.
Last reply by bonana, over 12 years ago:
Not necessary anymore. Now I got it (took a long time :D). I'm too stupid! Your first answer was sufficient. I was just on a totally wrong path... Thank you. It's so easy, I could do it myself... I was too confused and didn't think of easy solutions. :D Sorry
Audiance for Greenfoot for iOS?
By SPower, with 14 replies.
Last reply by askgriff, over 12 years ago:
I don't have a Mac -- well, I have a 10 year old ibook -- but I am definitely interested. It might be worth an upgrade soon.
Can not create a new scenario
By cgibs13, with no replies.
FIgured it out
Setting the rotation
By moobe, with 9 replies.
Last reply by danpost, over 12 years ago:
Yes. If you wanted to get the width of the world in the method, you would use the following: world.getWidth()
iPad/iPod/Android App Creation?
By askgriff, with 3 replies.
Last reply by -nic-, over 12 years ago:
go to this
(here)
page to start but at the moment it is not possible but it is possible
886
887
888
889
890
891
892
X