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
Google Map API not working?
By bobkae, with no replies.
Hi - I have some students that want to use the Map class in a project. The simple examples aren't currently working in the latest version of Greenfoot. Does anyone know if this is a Greenfoot version issue, or a change in the Google Map API that is causing errors? The following is a compile error: Caused by: java.io.FileNotFoundException: Could not find file: http://maps.googleapis.com/maps/api/staticmap?sensor=false¢er=Brazil&size=600x400&zoom=5&maptype=roadmap
I have added jumping to my game and was wondering if there was way for the player not to be able to just hold down the jump key, I want the jump to happen only once per keypress, and not if the player is just holding the key down
By Sslur, with 1 reply.
Replied to by danpost, over 5 years ago:
To "catch" the changing of a continuous state, you need to know what the last state was (so you can compare the current state to it: <Code Omitted>In your case, it could be:
Hitbox
By nandoIT, with 1 reply.
Replied to by danpost, over 5 years ago:
nandoIT wrote...
hi I'm doing a donkeykong game right now. but i have a problem, in the Game from 1980 donkeykong rolles barrels and the player jumps over but the range of my barrels is so big the player cant jump over. how can i reduce the range of the barrel?
Are the sizes of your actors appropriate? Are the speed of the barrels appropriate? Is the jump speed and height of the player appropriate? In other words, what changes would you think might resolve the issue at hand?
How to prevent the player from jumping across platforms?
By AnJoMorto, with 4 replies.
Last reply by AnJoMorto, over 5 years ago:
danpost wrote...
AnJoMorto wrote...
I have a problem with where to place the code you gave me
Put it in your
fall
method.
Oh. That works perfectly. Thank you so much, you've helped me a lot! Have an awesome day
My character animation is buggy (the character flips upside down every time he moves left
By Sslur, with 2 replies.
Last reply by Sslur, over 5 years ago:
Thanks I'll let you know if it doesn't work
getting the Y cordinated of a object
By Ralkey, with 1 reply.
Replied to by danpost, over 5 years ago:
Ralkey wrote...
im trying to get the Y cordinates of the ground in my project. so when my character touches the ground.class it will get teleported to the top of my ground. but I have no idea how. << Code Omitted >>
This
was just posted on another discussion thread.
make a moving Menu Background
By PascalFischer, with 2 replies.
Last reply by PascalFischer, over 5 years ago:
thanks
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.
105
106
107
108
109
110
111
X