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
Don't kill if with shield
By KKobra, with 1 reply.
Replied to by danpost, over 8 years ago:
KKobra wrote...
I'm trying to make a dagger throw, and I wanted to make it not kill an enemy if it had a shield, checking with a boolean variable << Code Omitted >>
If you are getting any type of error output, please provide what that output is.
How to hide all objects at once?
By spacefrags, with 2 replies.
Last reply by spacefrags, over 8 years ago:
Thank you very much, it works perfectly now!
Method only for 20 seconds
By grnft, with 2 replies.
Last reply by grnft, over 8 years ago:
Thanks for your help, it worked!!
help please
By 20silvan, with 1 reply.
Replied to by danpost, over 8 years ago:
20silvan wrote...
I am trying to make it so a button will do different things if there are different actors in the world
Show what you have tried.
How do you make a character with the platform
By Comp, with 9 replies.
Last reply by Comp, over 8 years ago:
Thank You!
HTTPS
By objetos2223, with no replies.
I'm trying to embed a scenario from my webpage but there is a problem because the URL to embed is not secure. My webpage use HTTPS and the URL to embed the scenario use HTTP, so the browser blocks it because is a mixed content. The main page for scenarios https://www.greenfoot.org/scenarios uses HTTPS but any other scenario does not, for example http://www.greenfoot.org/scenarios/21386. Can you fix this security problem?
How do i turn an actor toward an other actor once?
By Recorsi, with 4 replies.
Last reply by Recorsi, over 8 years ago:
danpost wrote...
You cannot change the argument to your type of world,
Spielfeld
, in line 1. It must remain of type
World
. You can cast it to type
Spielfeld
within the method.
Thanks for your help it worked :)
How to know if an object is present in the World
By spacefrags, with 2 replies.
Last reply by spacefrags, over 8 years ago:
Sorry for the late response, but I had to try it well before and I have to say that it's perfect, now it's doing what it should do! Thank you.
Setspeed not working
By mikeliyixuan, with 2 replies.
Last reply by danpost, over 8 years ago:
There are several reasons why your speed will not reset. One, if actor is not in world,
timer
will not run (line 15). Two, actor must touch
pacman
for
timer
to run (line 12 and 13). Three (sort of), you are not comparing, but setting,
freeze
to
false
within if condition (line 18); so, the resetting of speed there (line 19) will never execute. You will need to find another place to put your timer (a different class) just because of the first reason alone.
Adding Actor object to world through an actor isn't working
By YoureNotCute, with 1 reply.
Replied to by danpost, over 8 years ago:
YoureNotCute wrote...
I'm trying to make my Player class add a Bullet object whenever I click the mouse when it's on screen. But when I run the code, clicking doesn't seem to do anything.
Remove line 3 in the
Payer
class and continue from there. Line 3 will not update automatically every act step (get it first thing in
attack
method).
How to stop background music when my actor dies
By mc09086, with 4 replies.
Last reply by mc09086, over 8 years ago:
That worked. Thank you very very very much!!!
Help a gal
By agray11202, with 1 reply.
Replied to by danpost, over 8 years ago:
View tutorials (
java
and
greenfoot
along with
videos
) and taking advantage of API documenation (
java
and
greenfoot
).
Spawn actor a certain distance from other actor
By Prox276, with 5 replies.
Last reply by Prox276, over 8 years ago:
Oh, I've already found it out myself. Thanks
How to change the music with a button?
By Recorsi, with 4 replies.
Last reply by Recorsi, over 8 years ago:
Thanks for your help
How to a character can move down??
By squad3007, with 1 reply.
Replied to by danpost, over 8 years ago:
squad3007 wrote...
how a character can move down??
You can use this: <Code Omitted>or this: <Code Omitted>
255
256
257
258
259
260
261
X