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
Prepare loop method
By Avast, with 6 replies.
Last reply by Peach, over 12 years ago:
thank you
Calling "Counter" from different objects
By i5-2500k, with 3 replies.
Last reply by danpost, over 12 years ago:
What is the method the Bullet uses when hitting an alien? If it calls a method in the Alien-class, show it also.
making enemies come towards the player from the side..
By jink, with 9 replies.
Last reply by hugtvy, over 12 years ago:
heres the the code to make the enemy move towards your "shooter", replace Surivovor with the name of your shooter and change the int dist to how close the shooter has to be to be followed eg: does the zombie always follow the shooter or is it only once it has come closs. hope this helps
Declaring Arrays
By ZiEiTiA, with 1 reply.
Replied to by danpost, over 12 years ago:
Please refer to
this page
of the Java tutorials.
Storing Used Numbers in a random number generation
By Mitchr101, with 4 replies.
Last reply by danpost, over 12 years ago:
@FootLongTurkey, please start a new discussion for your problem. Explain what you are trying to do, give what you have tried, explain which part you are having trouble with, etc.
drawLine(x1, y1, x2, y2) isn't drawing a line ;_;
By blankaex, with 4 replies.
Last reply by danpost, over 12 years ago:
There must be a better way to do what you are trying to do.
How to show score with number images?
By rohwedder, with 3 replies.
Last reply by rohwedder, over 12 years ago:
Thank you I got it to work with your solution... It's much appreciated :)
Problem left en right touch
By Youssef, with 1 reply.
Replied to by danpost, over 12 years ago:
Youssef wrote...
how can I get it done to an object when I touch the left of the right, or vice versa?
This is vague and no attempted code was supplied. No help could possibly come from this.
getOneintersectingObject footballgame
By Youssef, with 1 reply.
Replied to by danpost, over 12 years ago:
How are 'x' and 'y' declared? and, What is the exact (copy/paste) error message you are getting?
Add one to a variable from another class.
By Crystic, with 1 reply.
Replied to by davmac, over 12 years ago:
GameWorld is a class; you need to access the variable in the actual instance of the class - the world
object
. <Code Omitted>
Move method isn't working
By mandyg233, with 5 replies.
Last reply by mandyg233, over 12 years ago:
That works!
Getting a turret to rotate to the players position.
By craigd04, with 1 reply.
Replied to by trimil, over 12 years ago:
Try this:
Greenfoot: Shooting (Part 1 of 2)
getNeighbours or getOneObjectAtOffset?
By larg5847, with 9 replies.
Last reply by larg5847, over 12 years ago:
PD: isn't my final method, i only experiment if i could get (object).soy();
How to Spawn a New Object that is Away from You?
By Jesus_LOVES_You, with 3 replies.
Last reply by danpost, over 12 years ago:
Answers: (1) Let me explain it this way -- assume your Fish was in the middle square of a Tic-Tac-Toe grid and you want the spawning of Badfish to occur in any of the other grid-squares. If you did what you suggested by 'combining the actions', the spawns will only occur in the corner squares (restricted BOTH ways instead of restricted in only ONE of the two ways). (2) The '%' symbol is the arithmetic 'modulus' operator. It returns the remainder of a division operation. This will produce the following for any 'int' division. For int division using the formula 'A/B=CrD : A/B=C
Changing the origin of shoot to something a little higher.
By FrostRyan, with 2 replies.
Last reply by FrostRyan, over 12 years ago:
Lol, wtf I tried it before and didn't work, but now works perfectly, thanks :) got it now.
682
683
684
685
686
687
688
X