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
Prevent overlapping
By redteam55, with 1 reply.
Replied to by danpost, over 10 years ago:
With what you have tried, either the scarecrow will have moved forward some or backward some. But, sometimes neither is possible without running into another. Sometimes, it will have to just stay where it is until one of the others move away. Maybe try forward; if not, pick a random side and move there; if not, try the other side; if not, try backward. After each failed attempt, move back to original location.
error message
By spoohki, with 1 reply.
Replied to by davmac, over 10 years ago:
What version of Greenfoot are you running? Does it happen with the latest release, version 3.0.3?
Actors not showing?
By TheBrains1001, with 5 replies.
Last reply by danpost, over 10 years ago:
TheBrains1001 wrote...
The greenfoot.ask thing keeps showing after i answer the question. what do i do
Move lines 20 through 40 of the MainScreen class to a 'public void started()' method.
putting all actors in an array
By Psychpsyo, with 4 replies.
Last reply by Psychpsyo, over 10 years ago:
Thanks!
When to use the word static?
By redteam55, with 2 replies.
Last reply by redteam55, over 10 years ago:
Ah, thank you danpost, once again
Make a healthbar deteriorate over time
By BearProject, with 4 replies.
Last reply by BearProject, over 10 years ago:
Thank you so much!
How to make a variable accessible in all classes
By TSTemple, with 8 replies.
Last reply by danpost, over 10 years ago:
Maybe you misunderstood. It might be that because I missed one change that you needed to make, you tried to fix it on your own. To be clear, do this: <Code Omitted>Then in
other
classes, when
Move Actor1, if Actor2 moves and he is up
By Meh, with 4 replies.
Last reply by Meh, over 10 years ago:
Ok, thank you very much! your first line is what I meant, I just failed at my first line
How to make a detector?
By Laurence, with 1 reply.
Replied to by SPower, over 10 years ago:
You can use the getObjectsInRange method in Actor; see the
Greenfoot Documentation
, provided you have a way to play that GIF image.
Jumping error
By kcrumpet, with 1 reply.
Replied to by Meh, over 10 years ago:
replace lines 23 - 26 with <Code Omitted>and jumpStrength shouldn't be that high (20 is better)
Need help with spawning in actors
By Hydrowarrior, with 2 replies.
Last reply by danpost, over 10 years ago:
There is no need to have 'PrepX' and 'PrepY' retained for the life of the world. You can change the method to this: <Code Omitted>and remove'PrepX' and 'PrepY' totally from the class.
fire bullet right and left hand
By fandyrazzle, with 5 replies.
Last reply by danpost, over 10 years ago:
Oh, yeah. You did say your Shooter turns 360 degrees. You will need to insert the following line into the code at line 4 (before the 'turn-move-turn-move' combination): <Code Omitted>
Semi-Auto Weapons
By Cragster25, with 4 replies.
Last reply by Cragster25, over 10 years ago:
I have manages to fix it by changing the variable I have set to be a minus and when the space isn't pressed it would reset so the pistol can then fire once again. <Code Omitted>
Stopping a single method
By Julian109998, with 3 replies.
Last reply by Julian109998, over 10 years ago:
Thank u guys :)
Giving one Object another Object's coordinates
By BloodMate, with 3 replies.
Last reply by SPower, over 10 years ago:
It is to keep track of the player object. If you were to simply say, <Code Omitted>It's much harder to get a hold of that object again. It is possible with some Greenfoot methods, but the way that objects are normally 'kept track of' is through instance variables.
465
466
467
468
469
470
471
X