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
Wall Collision Issues
By awent0428, with 5 replies.
Last reply by Sirtuck, almost 11 years ago:
Oh yeah that was from an earlier version and I forgot to remove that part. It should always do the setLocation. Testing it this morning there is a weird case where if you are aligned on the corner and move in that direction then it moves you into the wall. This probably could be fixed by doing a similar check as the others when hspd > 0 && vspd > 0. Not positive but that should give you a good direction.
getOneIntersectingObject(<Class>);
By TomazVDSN, with 4 replies.
Last reply by TomazVDSN, almost 11 years ago:
danpost, thanks I was totally my mistake.. afterwards I did a test just to see it working. <Code Omitted>
Random Location spawn
By The_Shados, with 2 replies.
Last reply by The_Shados, almost 11 years ago:
thank you it worked.
counter
By Grennfootnoob, with 3 replies.
Last reply by danpost, almost 11 years ago:
Grennfootnoob wrote...
I want to program a break and the program should count the number of the keys so I can use the same key for stopping and starting greenfoot
That is impossible. Your program cannot detect any keystrokes when it is in a stopped state.
I cant add row of new Wave
By A2O, with 1 reply.
Replied to by A2O, almost 11 years ago:
Dont take this too serious, but it just makes me kind of furious, that little problems like that can just screw up a whole project.
Confusing Homework Problem
By FreshPrince19, with 1 reply.
Replied to by danpost, almost 11 years ago:
That is basically a refactoring problem where you replace a set of code with a method call and create the method to be called with the code replaced in its body.
Get Mic Level Issues
By GreenMan15, with 3 replies.
Last reply by GreenMan15, almost 11 years ago:
You certainly right, I did not type in the method correctly. It is now working.
Tower Defense Menu
By Luc_Stoffer, with 2 replies.
Last reply by Luc_Stoffer, almost 11 years ago:
Thanks a lot!:)
Saving a Save Variable Between Worlds But Reset It When Using Reset Button
By Geotan, with 1 reply.
Replied to by danpost, almost 11 years ago:
In a game like that, it is best to maintain the same main character and not create a new main character when changing worlds/areas. This main character should only be created once -- in your initial World subclass constructor. If you need to create another instance of a world that is the same type as your initial World object, then you will need two constructors for that world. The second one is the one called programmatically to create all subsequent instances of that world -- one that does NOT create a new main character. Maybe just passing the main character in the parameter of the worl
Pause method call
By Collin, with 2 replies.
Last reply by Collin, almost 11 years ago:
Wow, that looks great, THANKS!!
Make an actor "attack" a randomly appearing actor
By JackD, with 1 reply.
Replied to by danpost, almost 11 years ago:
I suggest you first peruse over the methods available within the World and Actor classes -- particularly for methods that return Actor and List objects. Most of them begin with either 'getObjects' (for List objects) or 'getOneObject' (for Actor objects). Since the mouse is an Actor object, it would be useful to know what other methods are available for use in its class that might come in handy for what you are trying to do here.
drawLine Method in World's subclass
By AceticAcid, with 7 replies.
Last reply by davmac, almost 11 years ago:
AkilaKcetIT wrote...
I too want to draw 1,2,3....9 in my game. I want to use line and Oval method for doing this.. Is it OK? or any other better options to do this?
Please do not post in years-old discussions - start a new discussion, and post a link to the old discussion if you like.
Sokoban scenario
By TomazVDSN, with 11 replies.
Last reply by TomazVDSN, almost 11 years ago:
danpost, It cleans up things a lot ! - Let me try this as well.
Class and Object
By Vellyxenya, with 9 replies.
Last reply by Vellyxenya, almost 11 years ago:
Yea true, the switch is more appropriate in this case, thank you!
why is this program is outputting a zero output
By divinity, with 5 replies.
Last reply by davmac, almost 11 years ago:
It looks to me like 'rateof_pay' and 'hrlyrate' are conflated - do you really need two separate variables? What are each of the variables (including all the other variables) supposed to represent, and how should they be calculated? If you can answer the above, you can fix your problem by:
removing any variables that are not needed or which are redundant
ensuring that the variable assignments in the code reflect the calculations required for each of the variables.
502
503
504
505
506
507
508
X