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
can yuh tell me what is wrong and what I am missing.
By divinity, with 22 replies.
Last reply by danpost, almost 4 years ago:
You need a menu to show first and foremost. Once you get that, you will need to re-write all codes below line 28.
divinity wrote...
hi super_Hippo, I did that and I am still getting the same result
After doing this, you should at least get a menu to show up. If no menu shows, then you may need to strip it down and start with bare minimum, to build from there. Note: after each addition of new implementation, it should do what you want. That is, the program should run and the new codes should perform as wanted. In other words, work on one thing at a time; get it working properly
playing sound error
By alex_rimbu, with 2 replies.
Last reply by alex_rimbu, almost 4 years ago:
That worked, thanks!
How to make an actor point towards north, south, east or west without keys?
By FunnyBoys-123, with 1 reply.
Replied to by Super_Hippo, almost 4 years ago:
<Code Omitted>dx<0 moves left. dx>0 moves right. dy<0 moves up. dy>0 moves down.
HELP!
By HELP, with 5 replies.
Last reply by Gbasire, almost 4 years ago:
yeah greenfoot is only for fun or to train simple coding haha
undeclared variable is.
By madalina.tuturman, with 1 reply.
Replied to by danpost, almost 4 years ago:
The compiler does not know what object "is" refers to. Nor does it know of any "Touching" method (even if "is" referred to an
Actor
object). But, it does know about an "isTouching" method for an
Actor
object. Remove the "." from line 13.
Make an object move towards another object
By xixEmilyxix, with 1 reply.
Replied to by danpost, almost 4 years ago:
xixEmilyxix wrote...
Imake it so that one type of bee would target an object flower and the other would only move inside a certain place (which will be the hive), I have code ... in the parent class.
Have both child classes call the
flyAround
method from their respective
act
methods, but have the one that is to stay in the hive modified to restrict where it can go and the other modified with an
if-else
to seek out flowers. A reference field for a flower actor might be useful in this regard (set it to flower when "seen" and use "if null" as condition in aforemen
Random movement
By xixEmilyxix, with 1 reply.
Replied to by Gbasire, almost 4 years ago:
you can try this, the object will move at the same speed (2 for example) but at a random direction : <Code Omitted>
How do I use a custom image for a class
By Gabe1098, with 2 replies.
Last reply by Roshan123, almost 4 years ago:
The best image edidtig app according to me is photoshop cc U can buy it officially or if u don't want then u can get its pirated version on chrome(it may contain virus) Download it on ur own risk
Tell me what is wrong here, what I am missing.
By divinity, with 24 replies.
Last reply by divinity, almost 4 years ago:
Many thanks danpost finally got it to work properly and it is thanks for all of the help. and thanks for the patience u have shown me. thanks again <Code Omitted>
Check an input is in a certain range and if not displaying an object
By xixEmilyxix, with 20 replies.
Last reply by danpost, almost 4 years ago:
xixEmilyxix wrote...
Thank you, i didnt realise i missed that out
Understandable, as you quoted before I posted the edit. That is why I mentioned it was edited in my post immediate following the given code.
Background Music
By StndRed, with 2 replies.
Last reply by StndRed, almost 4 years ago:
Thank you
can someone tell me what is wrong with my program
By divinity, with 3 replies.
Last reply by danpost, almost 4 years ago:
You need another closing bracket after line 61 (which means one needs remove somewhere below that -- probably near the end). Similar concerns at lines 75, 89 and possibly elsewhere. Please fix indentations prior to posting here again. All paired bracket should be at the same indentation positions (that will help in keeping them paired properly)
Greenfoot.mouseClicked(this) remove object.
By StndRed, with 5 replies.
Last reply by StndRed, almost 4 years ago:
Works like a charm. Thank you
Modify constructor code
By octav20071, with 2 replies.
Last reply by octav20071, almost 4 years ago:
danpost wrote...
octav20071 wrote...
I want to modify Greenfoot's constructor code, for MyWorld and actors, but where is the script located? I know what I'm doing, I only want to know what is the path to the text file.
If you want to modify the templates for when the classes are created, you can use any text editor finding the files at: greenfoot/lib/english/greenfoot/templates
alright, thank you very much!!
How can I add background music while the game is running?
By Pabloseb_, with 1 reply.
Replied to by Roshan123, almost 4 years ago:
<Code Omitted>
60
61
62
63
64
65
66
X