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
If One Statement is True
By RM6442, with 2 replies.
Last reply by RM6442, over 13 years ago:
Never mind, I took a closer look at my code and found that this works <Code Omitted>
Fancy Collision Detection
By RedPhoneBooth, with 2 replies.
Last reply by RedPhoneBooth, over 13 years ago:
yeah, I was considering doing that, but would that eventually lead to an unreasonable amount of actors? oh well, for my game I only really need the block one and then special ones like chests and bosses. Oh well, ill improvise
World/Class problem
By al_griff, with 11 replies.
Last reply by al_griff, over 13 years ago:
Oh ok that makes a bit of sense. Thanks for that :)
Working with keyboard in greenfoot
By montseviyu, with 8 replies.
Last reply by Busch2207, over 13 years ago:
What u mean then? Cause the method, I wrote checks, if the spacebar was repressed. (From not pressed to pressed)
ArrayList help
By 2patrickMurphy, with 3 replies.
Last reply by 2patrickMurphy, over 13 years ago:
everything fixed. I needed to iterate through each element of my arraylist and apply the timeframe and the boolean variable
Help with calling variables in two different classes
By criscotheshiz, with 9 replies.
Last reply by xillius200, over 13 years ago:
change getWorld().addObject(new Shot(this), getX(), getY()); setRotation(getRotation()); to Shot shot = new Shot(); getWorld.addObject(shot,getX(),getY()); shot.setRotation(getRotation()); that should fix problem
One object eating then recreating it in a different position.
By lgbrf, with 25 replies.
Last reply by lgbrf, over 13 years ago:
yeah i figured it was 38, i recompile each time, and there was only the other add object in the populate(); so i removed that, still glitched??
Some objects appear "late"
By legX, with 2 replies.
Last reply by legX, over 13 years ago:
Thank you very much for this (very quick) response ! It worked, although I had to precise 'Greenfoot.delay(1)'. I am working on a new version of my Othello, available soon !! (still a few hours...)
Create a moving background
By SPower, with 1 reply.
Replied to by danpost, over 13 years ago:
Create a new GreenfootImage that is the size of the world, but a little bit higher than the world height, and fill it with you main background color. Then draw the current background image onto the new image at (0, n) and set this image as the new background image.
shoot in range
By tylers, with no replies.
how do you get an object to shoot at something in a certain range
how do I create a standard variable?
By h123n, with 3 replies.
Last reply by h123n, over 13 years ago:
Thanks danpost and Denzein! now my bee can actually fire nectar anywhere!
Breakout
By theDoctor, with 29 replies.
Last reply by IsVarious, over 13 years ago:
Sure thing bud :)
how to pass object as parameter and why?
By sanashah220, with 2 replies.
Last reply by danpost, over 13 years ago:
Let me qualify the static part. If the variable is in the world class, it is pretty much the same. Non-static variable, one per world instance; and static variable, one world class variable (I will not even say 'per', here; and I guess that would be considered 'global'). The values of non-static world variables are lost at 'reset', where static world variables retain their values until re-compiled. The reason I started with 'No' above is that you can never call an instance variable a global one; so, logically speaking, 'No' is correct.
line with an thickness
By tylers, with 2 replies.
Last reply by tylers, over 13 years ago:
it works thanks :D
How to turn an object 180 or 75 degrees
By martijn13039, with 3 replies.
Last reply by martijn13039, over 13 years ago:
thx ( for your help) I have invented
986
987
988
989
990
991
992
X