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
How can I learn greenfoot java code faster?
By ValeroDeniro, with 2 replies.
Last reply by davmac, almost 11 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, almost 11 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, almost 11 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, almost 11 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, almost 11 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, almost 11 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, almost 11 years ago:
Such a vague question and no attempted code to show?
shooting help!
By Moho, with 4 replies.
Last reply by danpost, almost 11 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, almost 11 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, almost 11 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, almost 11 years ago:
Code always needs good comments
By ValeroDeniro, with 2 replies.
Last reply by ValeroDeniro, almost 11 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.
Trouble jumping
By ShaunThompson12, with 8 replies.
Last reply by ShaunThompson12, almost 11 years ago:
Thank you both very much I made the changes both of you suggested and it worked. Thank You!!!
Trying to create and Arkanoid
By danielartine, with 2 replies.
Last reply by danielartine, almost 11 years ago:
Ok, thanks, i'll try do something.
593
594
595
596
597
598
599
X