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 start movement after some seconds?
By joandvgv, with 3 replies.
Last reply by joandvgv, almost 12 years ago:
Yes! Thank you. This did work. In my implementation I had to use a switch for 'switching' between different deleays depending on the routes. I'm creating other discussion because I need help now with other trouble and the getIntersectingObjetcs method.
How to make a clock hand
By efe, with 16 replies.
Last reply by danpost, almost 12 years ago:
efe wrote...
I guess the problem is that the main extension in the graphic is in y direction (bottom to top) whereas the main extension in yours is in x direction (left to right).
That makes sense. You would then need to create an image with double the height (instead of the width) of the original image and draw the original image at (0, 0) on the new double-sized image (presuming the hand points upward to begin with).
how to use a worlds started() and stopped()
By fejfo, with 6 replies.
Last reply by danpost, almost 12 years ago:
Again, you can not create or delete any files or folders, nor can you write to any files on the site due to security restraints.
Dedect collision with class and subclass
By leuveg, with 6 replies.
Last reply by joandvgv, almost 12 years ago:
davmac wrote...
I think this works but does something completely different to what you want. You want it to "getOneInterectingObject" from the superclass and the subclasses. But I think it just get you the ones from the superclass.
That's not right, it will get all instances of the given class (including instances of subclasses).
Ok, thanks for the clarification.
maze-walkers "Missing Methods"
By plant, with 17 replies.
Last reply by DoctorMitch, almost 12 years ago:
plant wrote...
So does your player automatically move or do you have to move it
You move it with the arrow keys, seen via act. The set of 90 degree turns on either side of the move(1) keep the character facing the same direction at all times, and prevent the character from constantly turning left when pressing up, or right when down
Actors communicating with a World subclass
By forteddyt, with 3 replies.
Last reply by leuveg, almost 12 years ago:
<edit> wrong thread
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, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 years ago:
Check out
this scenario
.
Abstract Worlds
By RealFighter64, with 12 replies.
Last reply by danpost, almost 12 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, almost 12 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.
598
599
600
601
602
603
604
X