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
Command Adding and Deleting
By TravJ14, with 3 replies.
Last reply by Super_Hippo, about 7 years ago:
You didn't do what I suggested. Remove lines 12, 31-36. Add this in line 12: <Code Omitted>Change "Wall1" in lines 37+50 to "shield". (In line 56, use "getWorld()" instead of "area".)
Error when changing World
By gacha321, with 32 replies.
Last reply by isAtEdgeForNoReason, about 7 years ago:
Oof
Gold must increased 2times in GoldWorld
By gacha321, with 5 replies.
Last reply by danpost, about 7 years ago:
gacha321 wrote...
ahh I see use the ternary operator right? :D
Yeah -- well it works for what you have right now (it may not be suitable later).
Transparent Background
By ButerWarior, with 4 replies.
Last reply by ButerWarior, about 7 years ago:
ty for your suggestion!
Need some help on Set Direction method?
By lzg01, with 3 replies.
Last reply by danpost, about 7 years ago:
Maybe you should add a
setDirection
method: <Code Omitted>
Making a back button in Menu
By gacha321, with 3 replies.
Last reply by danpost, about 7 years ago:
gacha321 wrote...
ah I see, can I use de remove World? and how if this will delete my gold status??
There is no remove World -- only a
setWorld
. You need to keep a reference to the old world in the new one so you can go back to it.
Adding Health to Enemy
By Verglas, with 16 replies.
Last reply by Verglas, about 7 years ago:
Oh, thank you very much! I made it so that it will remove the bullet when the ghost didn't die too and it solved my problem! Thank you very much danpost :D!
making a map run as soon as it gets switched to
By IHaveAGreenFoot, with 1 reply.
Replied to by danpost, about 7 years ago:
IHaveAGreenFoot wrote...
Hi, if anyone has any knowledge on how I can make a map run whenever it gets switched to. Thanks
Need context and codes.
Could you help me I get error in this part (200,roca.class);
By elizabethlc, with 1 reply.
Replied to by Wasupmacuz, about 7 years ago:
Can't believe nobody has replied yet.
Edit: looks like you got it answered in another thread. Change <Code Omitted>to <Code Omitted> Good luck!
Could you help me I get error in this part
By elizabethlc, with 7 replies.
Last reply by elizabethlc, about 7 years ago:
Super_hippo wrote...
Change it to "roca".
Thank you very much, it worked for me.
Ship can not use Laser while moving
By Joyfu1, with 2 replies.
Last reply by Joyfu1, about 7 years ago:
Sorry, the laser was hidden by the ship because the laser and the ship have the same speed. Thank you!
Enemy health
By ButerWarior, with 13 replies.
Last reply by ButerWarior, about 7 years ago:
Thank you! Now I found out the problem, and I was able to fix it. Like you said, all I had to do was refer to the laser that hit the monster by adding a variable to the code. Now it works, and the bullet would dissappear, while the monsters were removed after 3 hits!
Spawning Enemies One by One
By Verglas, with 3 replies.
Last reply by Verglas, about 7 years ago:
Thank you very much for the help! Works perfectly!
Movement issues
By BilalSLSS, with 1 reply.
Replied to by danpost, about 7 years ago:
I cannot find anything that would cause what you suggest. Let us rid the class of anything not needed or used. Remove lines 4 thru 6, line 39, line 58 and lines 61 thru 66. Now fix line 57 to this: <Code Omitted>To explain, the
stabbing
field was removed because "if (timer > 0)" basically asks if the actor is stabbing. Also, the
stabbing
field should not be a
static
field as each instance of the class will stab at its own time. I would understand a
static
stabbing
field if you had a bunch of
Zee
objects all doing sy
What Greenfoot class contains the main method?
By Wasupmacuz, with no replies.
I'm trying to convert a jar file (of one of my Greenfoot projects) into an exe file, but I'm not sure which class has the main method. Anyone have a clue?
182
183
184
185
186
187
188
X