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 does one make a simple scoreboard?
By MrSkyPanda, with 8 replies.
Last reply by MrSkyPanda, over 5 years ago:
Thanks i figured it ot!
I have this as my code, but my character doesn't seem to move
By Agentsolo, with 5 replies.
Last reply by danpost, over 5 years ago:
Agentsolo wrote...
where exactly do i add it. I don't see it
You seem to have a class inside a class -- and no act method to speak of.
How to make a start button
By willsumner, with 2 replies.
Last reply by PascalFischer, over 5 years ago:
A button is basically just this Code: <Code Omitted> You can make a new World, called startscreen or something like that, and make an Actor with this Code in it. Then make the button in your Start Screen, and it should work
Edge acts like a mirror
By Rottlo, with 4 replies.
Last reply by Rottlo, over 5 years ago:
really really thak you! I was pretty lost but you helped me out. THANKS!
how to add sound while moving the car
By zimmy, with 1 reply.
Replied to by danpost, over 5 years ago:
For multiple command
if
structures, use brackets. Here: <Code Omitted>only one command (on line 2, in this case) is conditionally executed by line 1. With the following , you can insert as many commands as you want at line 3 and all will be conditional to line 1: <Code Omitted>
Method won't get called.
By ItzLukeStorm, with 1 reply.
Replied to by danpost, over 5 years ago:
ItzLukeStorm wrote...
So I have an actor that has a method called "shot()" that won't get called for some reason. Does anyone see something wrong with my code? << Code Omitted >>
The method gets called; but, in doing so, the value of
shotTime
is unconditionally set to '
20
'; therefore, no orb is ever added to the world.
How do i add objects randomly?
By MrSkyPanda, with 6 replies.
Last reply by danpost, over 5 years ago:
MrSkyPanda wrote...
i'd like it to be added during and prior
And -- answers to my other questions?
Import audio file
By SignorGatto, with 2 replies.
Last reply by SignorGatto, over 5 years ago:
Ok thank you.
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.
106
107
108
109
110
111
112
X