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
Trouble with getting scoreboard to work
By Griffon305, with 6 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
No I don't think so. But if you change to order of the hitHome and checkCounter method it should work.
cannot find symbol help.
By gonnaownurass, with 3 replies.
Last reply by gonnaownurass, over 12 years ago:
thanks i just turned actor to animal and now its working fine.Thanks
accessing variable from another class
By welleid, with 11 replies.
Last reply by danpost, over 12 years ago:
That's my bad! Should be 'get
One
ObjectAtOffset'.
Help please Turn at world edge?!?
By Snake12163, with 6 replies.
Last reply by danpost, over 12 years ago:
I believe you are thinking correctly: After
executing
a return, no further statements will be executed in that method and execution resumes on the next line of the calling method.
Adding Actors with the Greenfoot.isKeyDown("") method
By Kiara, with 4 replies.
Last reply by Kiara, over 12 years ago:
Thank you both!
image help
By GrimCreeper312, with 9 replies.
Last reply by danpost, over 12 years ago:
You may want to remove the bullet along with 'Boss.life--;'.
wombats2 how to make the Wombat smarter
By jjimenez77, with 3 replies.
Last reply by danpost, over 12 years ago:
The following will find the closest leaf and then make a move toward it (if any found).
Barrier help
By GrimCreeper312, with 13 replies.
Last reply by danpost, over 12 years ago:
Yeah. What you probably should have done, instead of creating a seperate class for each of the Pic#s, is create one class (I would call it Mimic, because it mimics the image) and create one instance of it when the mouse is over a button. Pass it an object of the class the button refers to in the parameter so it can access its image.
How to find actors in radius?
By GreenGoo, with 1 reply.
Replied to by davmac, over 12 years ago:
I need it to return a boolean
You can't make a method return a different type to what it does return. I think what you probably mean is, you want to check whether there exist any actors in a certain radius. In that case, just call getObjectsInRange() and call isEmpty() on the result to check whether there are no actors in range. <Code Omitted> ... will set result to true if there are any actors within a 100 cell radius.
Text input with actors.
By Kiara, with 8 replies.
Last reply by Kiara, over 12 years ago:
THANK YOU!! :)
Jumping
By Kiara, with 6 replies.
Last reply by Kiara, over 12 years ago:
Ummm... I'm not doing this scenario anymore. Thank you both for your help, though.
Creating squares
By mattjames, with 3 replies.
Last reply by mattjames, over 12 years ago:
That's great thanks.
How to display the cursor?
By Kartoffelbrot, with 8 replies.
Last reply by danpost, over 12 years ago:
Please refer to the
Cursor class documentation
for extra info you may want to know about.
Writing lines in a textfile
By Ragtime, with 3 replies.
Last reply by davmac, over 12 years ago:
Technically you should use '\r\n' for Windows text files and just '\n' for Mac / unix style text files. However, as Gevater_Tod says, it will usually work just fine if you use '\n'.
Turns
By JetLennit, with 5 replies.
Last reply by davmac, over 12 years ago:
abilities :p
861
862
863
864
865
866
867
X