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
How do you make an actor jump?
By yuchoi, with 1 reply.
Replied to by danpost, over 11 years ago:
The horizontal movement, left and right, are independent of the vertical movement; meaning that jumping only deals with the vertical and has no effect on the horizontal; and the horizontal movement does not need any adjustment because of jumping. The code you provided above (if the counter begins incrementing upon a jump and is reset to zero after the jump) will cause your actor suddenly appear at a higher location for the duration of the count and then suddenly appear back at the lower location after the count. Your count limit of 4 is fairly small for what you have right now. A value
Having issues with my shoot() method
By PrezHawkeye, with 12 replies.
Last reply by danpost, over 11 years ago:
At line 41: put 'if (getRotation() == 180) getImage().mirrorVertically(); At lines 54, and 63: put 'getImage().mirrorVertically(); At line 100: this needs adjusted as you are always adding the width of Aubie to the x location and never subtracting it; better would be to use 'move' with an argument of half the width of the image of Aubie.
how do i use atWorldEdge?
By payner2013, with 4 replies.
Last reply by payner2013, over 11 years ago:
OHHH yeah i see now... thank you very much helped alot :)
Barrier repair code URGENT PLEASE HELP ;'( !!!!
By benskii93, with 5 replies.
Last reply by danpost, over 11 years ago:
I believe there is a similar type error in the Repair method, in that you are creating a new Repair_Indicator that never gets a chance to be activated before you check its value. It (the Repair_Indicator created during that execution of the method) exists only up until the method is exited. You may or may not have a Repair_Indicator declared in the class; however, when giving insufficient information, it is hard to say how to fix it. Please show the code for the entire class and use the 'code' tag below the 'Post a reply' box to insert the code with. Also, explain exactly how you want th
Game sound differentiation
By benskii93, with 2 replies.
Last reply by benskii93, over 11 years ago:
ok cool, thanks a lot.
Direction of another object
By payner2013, with 5 replies.
Last reply by payner2013, over 11 years ago:
ahhh ok that works now thank you
Sound Volume
By Foyman, with 1 reply.
Replied to by PrezHawkeye, over 11 years ago:
music.setVolume( ) 0 = off; 100 = loudest possible setting
PLEASE HELP WITH CODE
By cbufis, with 3 replies.
Last reply by cbufis, over 11 years ago:
got it
Sharing scenarios as web page?
By peterdcasey, with 7 replies.
Last reply by peterdcasey, over 11 years ago:
I believe that is the correct situation, thank you so much.
Compiles, but does not work correctly. Need help.
By LugNut29, with 4 replies.
Last reply by LugNut29, over 11 years ago:
Ahhh...I didn't even see that. I forgot to add the act() method back in. That's exactly want I was trying to do. Thank you again for your help!
I want the world to change when i reach world end
By Kevinobrien, with 1 reply.
Replied to by SPower, over 11 years ago:
Read the documentation of Greenfoot:
http://www.greenfoot.org/files/javadoc/
It's important you learn this.
can you draw a background w/ stars in space
By ksksks, with 7 replies.
Last reply by ksksks, over 11 years ago:
ok. Thanks, not able to do that yet. Any way to make little sparkles(turn & shoot aliens?)
How to return the center coordinates of an object
By JasonZhu, with 5 replies.
Last reply by JasonZhu, over 11 years ago:
Ok! I get it now, thanks.
Need some help.
By qpommer0, with 2 replies.
Last reply by qpommer0, over 11 years ago:
Works perfect! Thank you!
Removing Objects within an Actor Class
By tartags11, with 9 replies.
Last reply by tartags11, over 11 years ago:
That Works! Thank You!!
768
769
770
771
772
773
774
X