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
Menu stuff
By comandodude101, with 1 reply.
Replied to by MatheMagician, about 12 years ago:
You could use a world as a menu and have a separate world for the game and then use the setWorld(new GameWorld()); method to change the gamestate when the menu is clicked.
On scaling problem
By danpost, with 2 replies.
Last reply by Super_Hippo, about 12 years ago:
My bad again. My English is apparantly not perfect. <Code Omitted> So my world had 25*17 cells. But then I decided to devide every cell in 51*51 cells (which I probably called pixels because here: cells=pixels). The problem stays the same. Btw, the problem
is
was, that when an elephant (or the other enemies) only have one "big cell" (51*51), because I placed a dynamite, they were always walking back and forth, but I wanted them to stand there and do nothing.
It works now! I had to do the same with the dynamite. Thank you very
Help with mouse control
By SP00F3R, with 4 replies.
Last reply by SP00F3R, about 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-, about 12 years ago:
Thanks Danpost and Vonmeth
Help for school project
By mitch2209, with 1 reply.
Replied to by danpost, about 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, about 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, about 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, about 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
884
885
886
887
888
889
890
X