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
HELP!
By KR0N0S, with 1 reply.
Replied to by danpost, almost 12 years ago:
That would depend on how you move the actor to begin with. Post the class code of the actor (use the 'code' link below the reply box to insert code into your posts).
using a for loop with actors
By hhoogerwerf, with 9 replies.
Last reply by hhoogerwerf, almost 12 years ago:
I will change it after I finish my code, I still need to code that bit. So for now I use 1==1. Just to check if the code works.
NullPointerException with getObjectAtOffset
By ds06, with 11 replies.
Last reply by danpost, almost 12 years ago:
BTW, if both of the objects (the Held object and the Gegner1 object) are fixed at their initial locations in the world, then you can just use (50, 0).
Change if...else if in switch
By Mariachi, with 7 replies.
Last reply by Mariachi, almost 12 years ago:
I understand thank you !
Add general functions to World()
By Nicotinamidadendiniukleotid, with 1 reply.
Replied to by Nicotinamidadendiniukleotid, almost 12 years ago:
Ahh I fixed it. Here's the solution: Constructor: <Code Omitted>and click: <Code Omitted>
How to spawn multiple objects with delay
By AnthonioBanderas, with 6 replies.
Last reply by AnthonioBanderas, almost 12 years ago:
danpost wrote...
AnthonioBanderas wrote...
Ok thank you, but the CheckSpawning is already there in the PortWorld act as you see in the 2nd code, right?
No. Not right. The checkSpawning method is being called from the constructor of the class, not the act method. At the moment, the act method of your PortWorld class is empty (inherited from the World class; see the documentation). You need to override it and call checkSpawning from it in your PortWorld class.
Thank you so much. It works now
Non Repeating Random Generator
By BrownBoii333, with 1 reply.
Replied to by danpost, almost 12 years ago:
You can produce a range of numbers with the following: <Code Omitted>of course, that can be simplified to this: <Code Omitted>I just needed to show how the numbers were determined. The value of 'rand' will be a number between 5 and 10 inclusive. Would that be something like what you were looking for?
Boolean not working?
By berdie, with 13 replies.
Last reply by berdie, almost 12 years ago:
<Code Omitted> The above code was the solution i got for my problem
Timer Issue/ spawn issue
By Kickero, with 4 replies.
Last reply by Kickero, almost 12 years ago:
ok cool just double checking
I need andom spwaning enemys after time in my game help pls
By Gallager, with 3 replies.
Last reply by Gallager, almost 12 years ago:
k guys
How would I make an actor move in a square
By FelyFret, with 4 replies.
Last reply by FelyFret, almost 12 years ago:
thanks!
Saving a world--Please help
By nh3h, with 1 reply.
Replied to by danpost, almost 12 years ago:
If you are fixing it by manually adding and/or moving actors, then you can 'Save the World' to save the changes. Either right-click on the world and select 'Save the World' (at the bottom of the drop-down) or select 'Controls>Save the World' from the menubar. By doing so, the code representing the steps you took to change the maze will be added to your world class.
How to Display Image for GameOver/YouWin
By Anne2403, with 41 replies.
Last reply by Anne2403, almost 12 years ago:
okay sorry.. it did worked what you said. Thanks.
Hp Bar
By DiplomatikCow, with 7 replies.
Last reply by danpost, almost 12 years ago:
DiplomatikCow wrote...
I have the private images stored in a class called FortressHealth, but I haven't put any code into it so far, that would work right?
Yes, that should work.
Getting a game to move actor from one level to the next?
By tcoale, with 13 replies.
Last reply by tcoale, almost 12 years ago:
Thanks again, you're a real lifesaver.
622
623
624
625
626
627
628
X