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 do I add a number of objects from keyboard input?
By joandvgv, with no replies.
Solved.
Grabbing a reference to certain Objects.
By Abomb1126, with 9 replies.
Last reply by davmac, over 10 years ago:
Minor quibble but: <Code Omitted> "Lose" is spelled as "lose". "loose" is how you describe a nut that needs tightening.
Detecting if a Key is correct?
By Frogfrote, with 2 replies.
Last reply by danpost, over 10 years ago:
I believe your issue is due to the fact that 'questionTime' will only be called while the 'space' key is down (see condition of 'if' on line 60). In other words if you hold down the 'space' key and select an answer, you might find you made progress. Then, again, you may not. On lines 110, 121 and 132, you are comparing different String object to see if they are the same. They may contain the same internal character array, but the String objects are not the same. That is, the String objects created and assigned to the fields on lines 30 through 32 are not the same String objects created an
Rotation help.
By toastyteenagers, with 1 reply.
Replied to by danpost, over 10 years ago:
You did not act like a total noob -- you did use code tags around your code (or used the 'code' link below the reply box to insert the code into the post). (good job!) <Code Omitted>I used the blue 'if', and the condition is 'when it exceeds 35 degrees'. There is an Actor class method to get how many degrees the actor is turned and you know what you want to compare it to (or, at least, should be able to figure it out).
Specify Entities from an Actor
By FlamingWaters, with 15 replies.
Last reply by FlamingWaters, over 10 years ago:
Phew, thanks again.
How do i get one actor to pause for a while when reached a certain point(actor)
By Gerrit, with 19 replies.
Last reply by joandvgv, over 10 years ago:
Hey! Sorry for the late response, I was trying to fix some other stuff in my code before i was able to implement this one. But it did work, thank you. So, for anyone who needs this i'll let my implementation using danpost idea here:
Is it possible to represent the games in full screen mode?
By Sonic007, with 1 reply.
Replied to by danpost, over 10 years ago:
Check out
this scenario
.
Abstract Worlds
By RealFighter64, with 12 replies.
Last reply by danpost, over 10 years ago:
RealFighter64 wrote...
I just tried what you said, replacing any \160s from the code with spaces, and it worked perfectly!
I was going to suggest doing that, but I was not sure if it would work (I had noticed that 160 is 2 to the 7th power, or 128, more than 32, where 32 is the character number for a space).
2 or more enemies
By MIKA, with 9 replies.
Last reply by danpost, over 10 years ago:
You need to put the code for what you want to do when both tanks are destroyed at line 51 of the Game_World_Level_2 class.
i want to make a game on greenfoot
By Frankeinstine, with 1 reply.
Replied to by FlamingWaters, over 10 years ago:
So what do you want to do? Did you lose your code? Do you want to make a Mario game? I'm not sure what you are trying to ask.
Grabbing a sound variable from a subclass
By Kirachan, with 2 replies.
Last reply by Kirachan, over 10 years ago:
thanks man :D
greenfoot game on website
By 60sChallange, with no replies.
How can l put greenfoot game on my website?
difficulty faceing and turning a diraction
By darkspawnwolf, with 1 reply.
Replied to by danpost, over 10 years ago:
If you follow the logic of the code, you will realize where the problem is coming from. The act method starts with this: <Code Omitted>Now, assume the "w" key is pressed -- this is what happens: The first 'if' condition becomes true and the actor is rotated to 270 degrees and move up one cell. Then the second 'if' condition becomes false and the actor
Can't work out bounding boxes
By h123n, with 1 reply.
Replied to by danpost, over 10 years ago:
The Actor class has several collision checking methods available that perform in different ways. Maybe you should check out the Actor class API documentation to see what is available because 'getOneObjectAtOffset' may not be the best one to use in this case.
Counter not working (or .getCounter method error)
By NDDR, with 3 replies.
Last reply by NDDR, over 10 years ago:
It's finally fixed! Thank you very much for the fast reply and for the correcting my errors, danpost. :D
596
597
598
599
600
601
602
X