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
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
Randomly moving object from right to left
By csfail2002, with 5 replies.
Last reply by danpost, over 9 years ago:
An idea I had involves placing all 17 clouds in the world to begin with and uses the transparency of the image of the cloud to temporarily hide a cloud for a short time when it reaches the left edge of the world; then showing back up on the right when its timer has run its course. Create all 17 clouds from in the world constructor. Spawn the clouds into the world with a random x value of: <Code Omitted>This will cause a few to be spawned along the left edge. Have each Cloud object act once after being placed into the world so that
Levels don't change
By boilboil, with 6 replies.
Last reply by boilboil, over 9 years ago:
AIGHT! Thanks so much. I haven't been checking up on this, but thanks for your help Dan.
plant vs zombie
By branz17, with 1 reply.
Replied to by danpost, over 9 years ago:
When created or added into world, choose one of the four directions at random and also choose a random distance to move from one to the distance to the edge it will be moving toward. These two choices will need to be maintained in fields to be used each act step. During each act step: set rotation to direction, move and decrease the distance needed to travel and reset rotation back to zero; then, check if the distance left to travel is zero or not -- if so, choose a new direction and distance (the change in direction can be limited to a simple left or right turn, if desired).
set next world if score = 20
By skitlesas, with 7 replies.
Last reply by danpost, over 9 years ago:
In world act method, do this: If no ball in world: * remove all blocks * remove paddle * (re) prepare the world (add blocks, paddle and ball)
Strange platform problem
By jcboz, with 1 reply.
Replied to by jcboz, over 9 years ago:
jcboz wrote...
So all the code in my game compiles and had worked great, however I tried changing the world of my game to be bigger. Again everything compiles however there is this weird glitch where at a random amount of time, or in a random spot, my actor just falls through the platform at a speed much higher than the veloctiy set in the game. None of the code (other than the image and world size) was changed from when it previously worked. I'm not sure what code to include so to who ever answers this, tell me what lines of code I should be showing. Thanks.
It may also be worth noting
Java Error, shooting a bullet/fireball
By Simson187, with 5 replies.
Last reply by danpost, over 9 years ago:
Simson187 wrote...
Thank u but u mean "pfeil.move(1);" :)
Yes -- of course.
348
349
350
351
352
353
354
X