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
Pokeball cant get out a pokeman
By Kalpshah6, with no replies.
I tried the pokeball to add an pokeman but it doesnt work.
How to add an actor at a specific time.
By bombrz, with 2 replies.
Last reply by bombrz, over 9 years ago:
neverminf i figured it out
Simple issue
By TisHenry, with 5 replies.
Last reply by danpost, over 9 years ago:
If want the Short_Brian object to be a Brian object, then you need to have the Short_Brian class extend the Brian class instead of the Mover class (line 10 of Short_Brian). But then, because both classes have an act method, the one in the Brian class will not automatically execute for a Short_Brian object unless you add: <Code Omitted>to the Short_Brian act method.
Falling objects
By Brettwolin, with 1 reply.
Replied to by Yehuda, over 9 years ago:
To make an object disappear when it hits the bottom of the screen add the following at the bottom of the Actor's act method: <Code Omitted>To make objects randomly get added to the top of thw World then put the following into the World's act method:
Highscore
By DustTerminator, with 3 replies.
Last reply by danpost, over 9 years ago:
DustTerminator wrote...
Shoul i use the public static int form?
Yes.
How do I make the Maincharacter stop if it hits a platform?
By ketschma, with no replies.
I have a huge problem concerning the main character who doesnt want to stop when i hit the platform(jump n run). I already tried it with obejctatoffset but that wont work, cause greenfoot doesnt recongnize the character. <Code Omitted>this code is written in the Platform.class cause they are the ones moving same with the right side is there any other possibility? Please let me know, thanks in advance!
World changing
By DustTerminator, with 2 replies.
Last reply by DustTerminator, over 9 years ago:
Thanks a lot!
Help interpreting some code
By Ruv25808, with 2 replies.
Last reply by Ruv25808, over 9 years ago:
Oh I see. Thanks.
How can I detect an object in a specific cell?
By LoopingSample, with 5 replies.
Last reply by LoopingSample, over 9 years ago:
Thanks, got it now :D
Greeps Rule Question
By TheGreenFoot, with no replies.
Is increasing the value of MOVEMENT_SPEED in the Greep class allowed? I don't see anything forbidding it in the rules and they also say i may change the Greep class...
Spawning actors after real time delays
By DaWalkinWaffle, with 1 reply.
Replied to by danpost, over 9 years ago:
It is much easier to just re-locate the actor instead off removing and adding a new one.. See what you can do with that information. If you have difficulties with it, show what you tried and ask for assistance again.
Moving a Counter to a different spot on screen
By WhiteRoseAshes, with 3 replies.
Last reply by danpost, over 9 years ago:
Change the line to: <Code Omitted>
Actor speed when touch
By skitlesas, with no replies.
Hello. I want add different speed when ball touch block, block2, block3 Ball: <Code Omitted>
Speed of actor not uniform
By danpost, with 3 replies.
Last reply by danpost, over 9 years ago:
danpost[edit wrote...
I think I solved the mystery. Hopefully will upload fix shortly.
Orb issue is fixed, now and updated on site. The problem was that the Scroller class was treating the QActor objects as if they were normal Actor objects (not maintaining their more precise location coordinates). A slight modification to the 'scroll(int, int)' method in the Scroller class to move QActor objects as QActor objects was all that was needed.
Passing variables between worlds
By Brookili, with 3 replies.
Last reply by danpost, over 9 years ago:
danpost wrote...
Are all four actors (fighter, mage, soldier and thief) from different subclasses of the Hero class?
That is fine. Now, it looks like you are creating all 4 Hero objects and using the switch to place to proper one in the world. Also, it looks like the choice of hero is held by an int value and the Hero objects are created with a String object. Then the Hero objects use the String value (incorrectly, I might add) to set the fields appropriately for each type hero. I said incorrectly because you are comparing String objects (are they the same object)-- not String conte
348
349
350
351
352
353
354
X