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
cannot find symbol add score problem
By coder04, with 1 reply.
Replied to by danpost, almost 12 years ago:
Not enough info. What is 'multiplayerspace', as far as being a variable/field? How is it defined?
Wave
By xoiam, with 3 replies.
Last reply by danpost, almost 12 years ago:
I came up with the following, where the frequency is around the number of cycles across a 600 pixel wide world: <Code Omitted>The first three lines can be instance fields instead of local variables (or even class constants, if desired).
Mouse info
By umeshtaware, with 2 replies.
Last reply by danpost, almost 12 years ago:
MouseInfo objects can give you any actor it may be on with the 'getActor' method; and the 'toString' method should work on that. However, the string given may not be quite what you are looking for. In that case, you need to show the code you are attempting to use, so we can get a better idea of how to help (if possible). Look below the content box for a link on how to post code.
Mouse movement
By Judscar922, with 5 replies.
Last reply by danpost, almost 12 years ago:
You can search through the methods found
here
for methods that return various states of the mouse and also to get a MouseInfo object. And, you can go
here
for the MousInfo class API to see what methods are available to use on a MouseInfo object..
Holding an actor
By RSGBROK, with 18 replies.
Last reply by Alwin_Gerrits, almost 12 years ago:
The idea for as far as i got it is that he wants the wolf to be netted, then move exactly like the net for 5 moves and then move on its own again. Allso i didn't say the code you posted would fix anything.
My health code seem to not work
By coder04, with 17 replies.
Last reply by coder04, almost 12 years ago:
thanx
error for setting rotation
By coder04, with 4 replies.
Last reply by coder04, almost 12 years ago:
thanx ive fixed the problem
SideScroller
By CryoStorm012, with 5 replies.
Last reply by danpost, almost 12 years ago:
Please elaborate and include some code, so we can get a better idea of what you are attempting to do (include what classes the codes are in and which classes they extend).
Move Object
By ds06, with 2 replies.
Last reply by ds06, almost 12 years ago:
Wow great, thank you very much:) It works now.
Cannot Find canSee Method
By UltimateCoder, with 11 replies.
Last reply by ovirahman, almost 12 years ago:
Thanks. was facing the same problem .
sound problem
By Alwin_Gerrits, with 25 replies.
Last reply by Alwin_Gerrits, almost 12 years ago:
I was trying to use it to stop my music when the player would select a new level from the menu I created. Although the music gets paused when calling the menu it starts running as soon as the next level is loaded. Even though the next level is paused using the greenfoot.stop-method. Anyway, seen I think I've gone way overboard compared to what the official assignment looked like (create a game of choise with very few conditions aside from that) I think I will just pass on using the stopped method for now. After all like you said:
how can a program ever return a false value when asked if
addObject in constructor of actor class
By getreides, with 7 replies.
Last reply by getreides, about 12 years ago:
Now I understand, thank you!
Need help with "move" speed
By Oldmoe, with 3 replies.
Last reply by danpost, about 12 years ago:
Oldmoe wrote...
This is part of a bigger piece and there are multiple actors doing things, so the "w" tie in was to cause the TestShip to adjust speed as MyShip moved. Thanks again
You have movement due to the "w" key added to the TestShip class; however, it does not match the amount of movement with the Space class. I believe, since that is scrolling movement, the amounts should match and you should also check for and adjust the TestShip objects location on the "s" key also. Regards.
Need help with creating lives counter
By A1234, with 10 replies.
Last reply by A1234, about 12 years ago:
Sorry for the late reply, I mustn't have pressed post on my last reply. I have most of it working fine, but I am stuck with writing when my player does something, a life will be lost. Can you please help me with that? Thank you!
messing around with actors again
By Alwin_Gerrits, with 11 replies.
Last reply by Alwin_Gerrits, about 12 years ago:
Ow dang, so that's what's up. K, thanks davmac. I'm prety sure I get what caused my problem now.
639
640
641
642
643
644
645
X