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
Changing Ships
By Joyfu1, with 3 replies.
Last reply by danpost, over 7 years ago:
Joyfu1 wrote...
The image is a total single image.
Okay, you can either check the location of the mouse when it is clicked, and act upon it if in one of the specified areas, or you can add "hit-box" actors into the world and check for clicks on them. Now, what exactly do you mean by change the health bar if it was created in greenfoot? and when would you want to do it?
X,Y coordinates
By PurpleFrozone, with 4 replies.
Last reply by danpost, over 7 years ago:
Super_Hippo wrote...
Well, I meant that the X-coordinate where the object will be added equals the width of the world. Similar for how I described the Y-coordinate. Didn't think one could get confused by my formulation given the fact that it fits the question pretty well.
I agree that your response fit the question. I just felt clarity was important. Some of those new to greenfoot take a while to get things (if at all). Not saying this is one of them.
Need help with actors
By Elijahmendoza, with 1 reply.
Replied to by danpost, over 7 years ago:
Elijahmendoza wrote...
Can an actor access another acting without extending it? Sorry, I’m new.
Extending is not used for providing access -- it is only used for inheritance. Getting references and using public methods (or fields) provide access. You will have to provide details for quick decent help.
Export to JS without Uploading
By SimonWalls, with no replies.
How can I transpile my Greenfoot project to JS without uploading it?
Command Adding and Deleting
By TravJ14, with 3 replies.
Last reply by Super_Hippo, over 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, over 7 years ago:
Oof
Gold must increased 2times in GoldWorld
By gacha321, with 5 replies.
Last reply by danpost, over 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, over 7 years ago:
ty for your suggestion!
Need some help on Set Direction method?
By lzg01, with 3 replies.
Last reply by danpost, over 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, over 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, over 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, over 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, over 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, over 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, over 7 years ago:
Sorry, the laser was hidden by the ship because the laser and the ship have the same speed. Thank you!
182
183
184
185
186
187
188
X