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
A question. how to remove
By Zwemvis, with 6 replies.
Last reply by Zwemvis, over 6 years ago:
Hoi Danpost Thanks for your help :-) Bedankt voor je hulp.
Need help with my Snake game
By Sedrik, with 4 replies.
Last reply by danpost, over 6 years ago:
Sedrik wrote...
But when I put static number there instead of variable, it works. When there is static number snake gets bigger with bigger numbers. Once I put variable there it stops working.
That is usual behavior for when the variables are in the wrong class -- but, I am not sure that is the case here. The
if
statements in your
getScore
and
getPocitadlo
methods are misplaced - or, at least the one in
getScore
is. Each
Chvost
instance will call these methods and the value of
score
, in particular, will be inflated (incremented once per
C
How to add a score that is more than 1
By Sebastiano, with 3 replies.
Last reply by danpost, over 6 years ago:
Sebastiano wrote...
Thankyou @danpost , helped alot however i have just published my space invaders game however the run button acts as if it is the act button and only executes the instruction once
Re-publish it again. This time, check the
Publish source code
check box.
How to pass variable from one class to another?
By pavolbiacko2002, with 1 reply.
Replied to by danpost, over 6 years ago:
pavolbiacko2002 wrote...
I need to pass a variable from one class to another.
Cannot help fix unknown codes. Show class codes (both sending and receiving the value) showing some attempt and point out exactly what you are trying to pass both from and to.
how to find a project page
By DIA, with 1 reply.
Replied to by danpost, over 6 years ago:
DIA wrote...
Can some one explain how to download a lesson, no such link i could find on this website
There is a section called
Tutorials
you can get to via the
Documentation
tab above. I hope that is what you mean.
Spawning Coins in Game (Issue)
By s1802055@online.houstonisd.org, with 4 replies.
Last reply by s1802055@online.houstonisd.org, over 6 years ago:
Thanks
Modos de juego
By Joglacraft, with no replies.
¿Disculpen, me gustaría que me dieran ideas para el juego "little crab" por favor.?
finish scenario
By Fuph, with 21 replies.
Last reply by Fuph, over 6 years ago:
Have a nice christmas and new years eve!
scenarios for greenfoot 3.5.4
By Sara, with 1 reply.
Replied to by danpost, over 6 years ago:
It may be a matter of just removing: <Code Omitted>from any and all classes. Any <Code Omitted>lines should also be removed. Beyond that, we would have to deal with each error individually.
Help
By MagickCZ, with 1 reply.
Replied to by danpost, over 6 years ago:
MagickCZ wrote...
I keep getting "not a statement" << Code Omitted >> Its on the ((MyWorld) getWorld().addAsteroid();
You are missing the closing parenthesis for
(MyWorld)getWorld()
Turning to Mouse but with an Radius
By Valstrax, with 7 replies.
Last reply by Valstrax, over 6 years ago:
Thank you.
Need Help Shooting "bullet" at hero!!!
By LightningFast, with 6 replies.
Last reply by danpost, over 6 years ago:
LightningFast wrote...
Q1: idk i kind of just have it as an acter right now, but i could just put it in the enemy class
Does not have to be an enemy class, especially if it is just the world shooting the bullets.
Q2: noo, i want it to detect the actor’s location and move towards it when the int spawn mod 60 == 0 (in the MyWorld). So basically multiple bullets are being shot at the hero and the main goal of the game is for the hero to avoid it go to certain location at the same time. Right now my main problem is shooting bullets at the hero :(
Show world class codes (ent
trying to get the X and Y of every object
By Yodats, with 4 replies.
Last reply by Yodats, over 6 years ago:
Thank you really much danpost
getOneIntersectingObject problem
By Fuph, with 7 replies.
Last reply by Fuph, over 6 years ago:
I just tried it and it worked! Thank you very much!
java.util.List<java.lang.Object> cannot be converted to java.util.List<greenfoot.Actor>
By Cool, with 1 reply.
Replied to by danpost, over 6 years ago:
You could try the following for line 3: <Code Omitted>If that does not work, start with: <Code Omitted>
155
156
157
158
159
160
161
X