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 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.
constructor cannot be applied to given types
By riachiyo, with 2 replies.
Last reply by davmac, almost 11 years ago:
As for the problem, you have a private inner class called 'wait' (why doesn't it start with a capital? I'm it was mentioned to you in a previous discussion that Java classes should start with a capital) only has a constructor that takes no parameters (line 722): <Code Omitted> You are then trying to create a new instance of this inner class, eg on line 573: <Code Omitted> ... but you are passing a parameter ('null'). Same again on line 612 (the line numbers you gave in your post above seem to be wrong) a
Score counter problem
By e.vill, with 1 reply.
Replied to by danpost, almost 11 years ago:
You can be quite sure (provided you did not make any changes to it) that the Counter class code is okay -- that the problem you are experiencing is not due to its code. Usually, when people have a problem similar to what this appears to be, the problem is in their World subclass. Post its code.
593
594
595
596
597
598
599
X