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
Counter question
By toba4366, with 2 replies.
Last reply by danpost, over 8 years ago:
Upon restart, you can shuffle the array with: <Code Omitted>
Adding an attack animations
By OfficerRiot, with 5 replies.
Last reply by danpost, over 8 years ago:
Now I can see why the animation might freeze when "x" and either "a" or "d" are held down. They both run the image animation. The absolute freezing is due to the fact that your image timer is using 2 as its limiting value. Changing it to an odd number might allow something to happen; but, still, it probably will not be what is wanted either. You already have 3 image sets competing with each other to be the animation of the actor (the normal moving left and right animations and the attacking animation). You probably have individual attacking left and attacking right sets as well. Without
Transparency & Collisions
By Hoohoo2, with 6 replies.
Last reply by Yehuda, over 8 years ago:
The scenario I suggested is only slow in HTML5 (on the site) not in regular Greenfoot. Yours is slow in the IDE (according to what you say) unlike Busch's (your code is also more complicated).
I keep getting a runtime error
By suzbo, with 2 replies.
Last reply by suzbo, over 8 years ago:
I am so sorry - that I did not see this - please excuse wasting your time - thank you for your help.
Countdown timer before the game starts?
By Miguel.Valdez, with 1 reply.
Replied to by danpost, over 8 years ago:
Add an actor into world to display the countdown. Use while loop that controls what it displays and changes its image when needed. Use Greenfoot.delay(int) using an appropriate int value for display time for each image. Remove the actor when time of last image is expired. Use the condition that that actor is in the world to stay in the loop.
help with getting a list of neighbour actors with "getOneObjectAtOffset"
By StrauXX, with 3 replies.
Last reply by danpost, over 8 years ago:
You have this: <Code Omitted>replacing '
this.
', which again you cannot do.
Trying to create a welcome page for when member login it
By divinity, with 1 reply.
Replied to by danpost, over 8 years ago:
Looks like you have an extra angle bracket,
<
, before the dollar sign,
$
, in the
head
section.
Using a GIF
By Miguel.Valdez, with 23 replies.
Last reply by danpost, over 8 years ago:
Miguel.Valdez wrote...
That I can recall, there was no more crashing...
and the scenario is not stopping (or getting paused)?
How do I make my minnows move on the y axis
By applecider124, with 4 replies.
Last reply by applecider124, over 8 years ago:
danpost wrote...
applecider124 wrote...
"n" is just changing the picture that represents the minnow. Its just an added annimation.
Oh. okay. Add a direction control field of type int. Allow values of either one (for down) or negative one (for up). Use it both for moving and for turning around. <Code Omitted>
Thank you so much!!
Unable to loop/restart code
By idk1234, with 16 replies.
Last reply by danpost, over 8 years ago:
idk1234 wrote...
the setImage. It quickly sets the image to "Evil Crusher_Off.png") (like blink of an eye) and changes it back to "Evil Crusher_On.png").
Line 24 should be where line 34 is (where
direction
is set to one) and line 34 should be where
direction
is set to negative one.
Add objects/enemies in side scrolling world
By KKobra, with 4 replies.
Last reply by Yehuda, over 8 years ago:
You can optimize the other methods also it will just be more work (for one of us).
Help with looping textbox?
By StormP3, with 6 replies.
Last reply by StormP3, over 8 years ago:
Never mind about that last post, I figured out where it goes and what to do after that, thanks for all your help!
Lose life
By LobsterL, with 9 replies.
Last reply by danpost, over 8 years ago:
Line 18 did not add one into the world -- that is what line 47 does. The problem is that the Frog object which is created on line 18 is not the Frog object that line 47 adds into the world.
Help with Greenfoot.ask and Timer
By Lee9901, with 4 replies.
Last reply by Lee9901, over 8 years ago:
*sigh* Thats what i thought. All right thanks for clarifying danpost. I truly appreciate it. :)
Spawning Cars
By LobsterL, with 8 replies.
Last reply by danpost, over 8 years ago:
LobsterL wrote...
how would I do that??
What do you think an addedToWorld(World) method would look like (see Actor class API documentation for clues)?
262
263
264
265
266
267
268
X