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
Jump Animation
By EduandErnst, with 11 replies.
Last reply by EduandErnst, over 10 years ago:
Yes, that works just as I want it. Thanks again
Deleting from a file
By Ben&Sam, with 1 reply.
Replied to by danpost, over 10 years ago:
The easiest way is probably just to read the file in and then re-write the file without those equities.
How can I learn greenfoot java code faster?
By ValeroDeniro, with 2 replies.
Last reply by davmac, over 10 years ago:
How can I learn greenfoot java code faster?
I would suggest that you ask specific questions about things that you don't understand.
How to make a bullet follow another actor but not turn towards it?
By wsrenwick, with 1 reply.
Replied to by danpost, over 10 years ago:
Whether you are having the bullet follow the actor with or without turning toward it is done exactly the same way. The only difference is WHEN you turn toward the other actor. To follow turning towards the other actor, you would continuously, via the 'act' method', turn toward the other actor. To follow without turning towards the other actor, you would only once turn toward the other actor, via the 'addedToWorld' method or (and this next way is the one I prefer) in the class of the enemy after creating the bullet and adding it into the world.
Can anyone help add comments to these lines?
By ValeroDeniro, with 1 reply.
Replied to by danpost, over 10 years ago:
If you are using Greenfoot 2.4.x, then the class you had here could be re-written as follows: <Code Omitted>There was nothing in the constructor or the act method and all the other methods are now included in the Actor class. Dangers.turn(int) : Actor.turn(int) Dangers.canSee(class) : Actor.isTouching(class) Dangers.eat(class) : Actor.removeTouching(class) Dangers.atWorldEdge() : Actor.is
Advanced Tricky Coding; Can anyone add comment to these lines?
By ValeroDeniro, with 3 replies.
Last reply by ValeroDeniro, over 10 years ago:
Thanks a lot! it was hard understanding the comments but thank you!
Return method isn't working from outside?
By Lambda, with 4 replies.
Last reply by Lambda, over 10 years ago:
Oh! That's useful! Thank you!
I'm inserting an array, but where do I put it?
By Kendall, with 20 replies.
Last reply by danpost, over 10 years ago:
Kendall wrote...
danpost, if I use the integer array, what do I populate it with to associate the integers with the images?
You put your scaling values in it: ' { /* width */, /* height */ } '.
wave timer
By RagingAsian, with 1 reply.
Replied to by danpost, over 10 years ago:
Such a vague question and no attempted code to show?
shooting help!
By Moho, with 4 replies.
Last reply by danpost, over 10 years ago:
As far as the distance your bullet travels, would need to see the code for the class of the bullet.
What's wrong? Object away from another
By Lambda, with 2 replies.
Last reply by Lambda, over 10 years ago:
Damn, I just found the problem before refreshing the thread page. Shame on me, works now. Thanks! :P
Code needs comments; anyone know what the lines say?
By ValeroDeniro, with 2 replies.
Last reply by ValeroDeniro, over 10 years ago:
You're amazing. Thank you. @danspot and everyone else. I'll defo come back for more!
Need comments on code; I have no idea what it is saying.
By ValeroDeniro, with 1 reply.
Replied to by danpost, over 10 years ago:
Code always needs good comments
By ValeroDeniro, with 2 replies.
Last reply by ValeroDeniro, over 10 years ago:
Wow amazing. Thank you!
Getting a character to not pass through an object
By ShaunThompson12, with no replies.
I have 2 characters and I need to them to be able to jump on each other and not pass through walls around the world.
592
593
594
595
596
597
598
X