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
Code
By Multisciente, with 8 replies.
Last reply by Multisciente, almost 7 years ago:
Ok. =)
How can I convert from getObjectsInRange into Actors?
By The_bazm, with 3 replies.
Last reply by danpost, almost 7 years ago:
The_bazm wrote...
Thank you. I have another question: how can i check if an actor belongs to a specific class.
Use the
instanceof
boolean comparison operator. For examples: <Code Omitted>
Platform Problems
By SymInvader, with 16 replies.
Last reply by SymInvader, almost 7 years ago:
Tried it out and it works now. Thanks for the help! :)
theres a not a statement and i dont know how to fix it
By blurgram22, with 1 reply.
Replied to by danpost, almost 7 years ago:
blurgram22 wrote...
i need help i'm making a program and theres the not a statement error and the expected ether ; or ) symbol
Will need to see that class codes to help.
When using a while loop, it doesn't use any of the wait variables i've used for delay. It just skips it all.
By TheKgroup, with 4 replies.
Last reply by danpost, almost 7 years ago:
TheKgroup wrote...
How would I be able to loop it until it gets to 0 without it going all at once? I want it to have a timer so it goes 3, 2, 1.
You can add: <Code Omitted>to literally pause for a time frame. A simplified version would be like:
Get an actor to move down when actor is at edge.
By Notted, with 9 replies.
Last reply by Notted, almost 7 years ago:
This seems to be working. <Code Omitted>It's rather noting that most of my code comes from my Kaboom Remake Full
Control Animated gif with key press
By dejong1968, with 1 reply.
Replied to by danpost, almost 7 years ago:
Line 1 should read: <Code Omitted>Any change at all? (not sure if that had anything to do with any part of your issue)
I'm making a lightcycles game and there's a small problem
By Nico_ti, with 4 replies.
Last reply by VandeGraaffgenerator, almost 7 years ago:
Amen
Lightcycles game problem with trail
By Nico_ti, with 3 replies.
Last reply by danpost, almost 7 years ago:
Nico_ti wrote...
Alright thanks for the help! But is there a way to edit the thickness of a line?
No. The only changeable pre-set drawing state is the color and there is no line drawing method with a parameter for thickness.
How do you check if one actor is in front of another?
By MrMinestrone, with 1 reply.
Replied to by danpost, almost 7 years ago:
MrMinestrone wrote...
I am making a game in which if you crash into another actor the other one gets deleted. How do I do this?
Do you mean like this: <Code Omitted>placed in code after the actor moves?
Game stuck on Initialising... when uploaded to the website
By AttackTheMOON, with 2 replies.
Last reply by AttackTheMOON, almost 7 years ago:
@nccb Thanks for the help!
Need a solution to inefficient code
By Andrew0739, with 2 replies.
Last reply by Andrew0739, almost 7 years ago:
ok really? thanks!
problem with preventing player from moving if touching an object
By Andrew0739, with 3 replies.
Last reply by Andrew0739, almost 7 years ago:
Oh, ok. I have made those change. Thanks. Also i found a solution.
Struggling with accessing variable from another class & world
By Kang, with 4 replies.
Last reply by Kang, almost 7 years ago:
danpost wrote...
Remove "int" from line 4 and your getMutation method should only have the following one line: <Code Omitted>
Seems like it worked. Thx a lot : )
Giving an error
By Multisciente, with 1 reply.
Replied to by danpost, almost 7 years ago:
Multisciente wrote...
<< Code Omitted >> This is giving error in ".WHITE". How to straighten?
Remove line 2.
204
205
206
207
208
209
210
X