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
Make an Object, which moves from one side of the world to the other, and repeats the action, when done
By PascalFischer, with 3 replies.
Last reply by danpost, over 5 years ago:
PascalFischer wrote...
it ... repeats ... but with the same start position
So, basically: <Code Omitted>In a bounded world the "-1" in both cases can be dropped (although, that is where it ends up, regardless of its inclusion).
Every second
By iDragon3o6, with 2 replies.
Last reply by iDragon3o6, over 5 years ago:
Thank you!
Pop-up Message
By PascalFischer, with 2 replies.
Last reply by PascalFischer, over 5 years ago:
thanks it works now
Place reference into World
By OfficialMajonaise, with 2 replies.
Last reply by OfficialMajonaise, over 5 years ago:
Thanks alot man, it works :D
Change the Mouse Image, while hovering a Button
By PascalFischer, with no replies.
Is it possible to change the Image from the Mouse, when the Mouse hovers the Button? and if so, how?
Userinfo
By Roshan123, with 10 replies.
Last reply by danpost, over 5 years ago:
Roshan123 wrote...
As u said that ' if any user misuses it, then the user will be barred from use ' Does it need programming (i think its not possible but sometimes u make it possible) or to inform the developers of greenfoot
Programming -- yes. I will add to a list of banned users and update the scenario. Only need to check the name of the user against the list.
my platforms are acting funny
By MrSkyPanda, with 17 replies.
Last reply by danpost, over 5 years ago:
MrSkyPanda wrote...
do i put this in the lines that you mentioned earlier?
That would be for step (3); however, you will need to do step (1), which assigns the intersecting platform to the variable
ground
, for it (step 3) to work. The other steps would still need to be completed, as well, for the behavior to be righted.
Error Message
By armaity, with 2 replies.
Last reply by armaity, over 5 years ago:
danpost wrote...
armaity wrote...
When I published my game to the Greenfoot website, it showed a Java.lang runtime error.
I think it has to do with your
static final bgImage
field. Something about
static
or
static final
object references being assigned an object right off doesn't seem to go well with HTML5 javascript.
Thank you so much, I did not know that thanks for the help.
can anybody tell me what is wrong with this coding
By Kayberry, with 1 reply.
Replied to by danpost, over 5 years ago:
Your
angle
, at line 15, is in radians; but you use it on line 16 like it is in degrees.
Need help creating a grid of squares
By cxcpio, with 6 replies.
Last reply by cxcpio, over 5 years ago:
Alright I finally managed to make it work thank you so much!
How to access Variables from touching subclass?
By ElwoodHogan, with 7 replies.
Last reply by danpost, over 5 years ago:
ElwoodHogan wrote...
That fixed it! It now works perfectly. Thank you for your help danpost. Appreciate it.
The reason why the "
double
" word needed to be removed is that with it, you are defining a NEW local variable with the same name as the pre-defined field; without it, it will refer to that pre-defined field. Line 5 can also be written as: <Code Omitted>
how to do gravity?
By WINER8, with 5 replies.
Last reply by danpost, over 5 years ago:
WINER8 wrote...
RcCookie when i was writing the code "setLocation(getExactX(), getExactY() + vY);" the greenfoot inform me there are not method getExactX() and method getExactY() can you help me please
RcCookie wrote...
Say you have a class Player.
This class should extend SmoothMover
, a Greenfoot class that uses floating-point variables to store the actors position. You can import it by right-clicking onto the panel with „Actor“ in Greenfoot and selecting „Import“.
Although, I am not sure about the instructions given to import it. I know of using the menu bar with :
Help me to fix SOUND!!
By astawakadek, with 2 replies.
Last reply by astawakadek, over 5 years ago:
Thank you, I didn't think about it, and it's going well!
Making actors stay on top of each other (overlay)
By Paul12345, with 4 replies.
Last reply by Paul12345, over 5 years ago:
danpost wrote...
Adding looks okay. Do you have an
act
method in your
NodeRB
class (if not, a class it extends)? Show, if so.
I realized my mistake. Since i was updating the locations of all objects in my WorldScrolling method I didn't have to update my text location in my NodeRB also, since it was already added in the world over it. Thank you for your feedback though !
jukebox or album music
By ronald, with 11 replies.
Last reply by ronald, over 5 years ago:
i will see what i can do and keep you posted thank you
106
107
108
109
110
111
112
X