Sign Up, Lost Password
You need to login to take part
how to export to android
By farhad2023, with no replies.
hi, i want export my game on android platform
Help with converting a buffered image into a greenfoot image
By AppleBanana, with no replies.
Hi, I was trying to write a program, that converts the sprites from a sprite sheet into an actual animation. The problem I stumbled upon, is that I now need to convert a buffered image into a greenfoot image, but my mental capacity clearly isn't as big enough co comprehend such an action, so help would be much appreciated :) the error itself is in the animationShower() method, but i'll post the whole class, just for clarity the code: <Code Omitted>
I am trying to use the wait(); command but I am not able to work this out
By Lolan, with 3 replies.
Last reply by Lolan, 6 days ago:
never mind. I managed to do it! Thank you very much for the help! have a great day (:
How to convert game's project in green foot to aplication game Windows
By Mzarifin58, with 1 reply.
Replied to by danpost, 7 days ago:
I have a game's project in my greenfoot. Buat i want to convert it to aplication game Windows for game exhibition assignments at my school. How to convert it?
You go by way of the '
' button and choosing the correct tab.
How can i rotate an actor around another ?
By VikenPM, with 4 replies.
Last reply by VikenPM, 8 days ago:
I already managed to fix it , thx for the support tho :D
Greenfoot 3.8.0 released, with Java 17 support
By nccb, with 1 reply.
Replied to by MrBradley, 11 days ago:
Long awaited, much appreciated. Thank you.
By JTEALL, with no replies.
How would I make a sound play til I stop holding a button
By Bobert, with 1 reply.
Replied to by danpost, 20 days ago:
I am new to greenfoot, and trying to make a sound sustain while key is pressed. ... make an if statement where: -If a Key is pressed and held for <1 second, loop play a sound. (or play a separate version of the sound, and maybe "if key is not pressed", Stop playing sound (dont know if its possible, maybe with sound.stop ())
Did you try this? What was your attempted codes?
how do i create a button that does one thing when clicked once then another when clicked again
By Owie2712!, with 3 replies.
Last reply by danpost, 22 days ago:
Your implementation idea is correct. There are just some minor mixups: << List Omitted >>
Notes about the list: (1) The default value for
, so it is not required to add "
" to line 11; (2) This may not be necessary if the objects created are equivalent each time. This will become apparent after moving on to (3) below; (3) The state of being "open" can be determined by a simple check, without the use of a boolean field. Note the code below:
Wall collisions messing up horizontal movement?
By TheGrrMan, with 1 reply.
Replied to by danpost, 24 days ago:
I have collision code that works well. You can't move up or down through blocks. There's also code for walls, but whenever I enable them, moving left and right on tiles is messed up. My game is tile-based, and I don't think the code is really meant for moving on multiple tiles at a time.
Please clarify: * tile based: how is your world created? please provide the
constructor call line in your world constructor; if the third value is 1, then please explain what you mean by tile based. * moving multiple tiles at a time: does this mean skipping over some
How do I create a function so when I click on one character with my mouse it effects another
By Owie2712!, with 1 reply.
Replied to by danpost, 24 days ago:
I’m trying to create a side menu that appears on the screen when u click a arrow on the same side but I have tried in the world class and both the arrow and the side menu and both haven’t work what I want to happen is when I click the button (arrow) the side menu appears and the arrow moves along so u can close it again
Cannot fix unseen codes. Please provide what you tried in your world class.
How do I make My Space ship detect if there is another space ship in a certain radius around it?
By Tema, with 1 reply.
Replied to by danpost, 26 days ago:
I want to make my actor (SoldierShip) detect if there is another type of ship nearby. I don't think I have any code that would help
The Actor class has a method to list objects within some radius of an actor. Take a look:
Actor class documentation
re PLASMA EFFECT
By ronald, with 21 replies.
Last reply by ronald, 27 days ago:
thanks Spock47 then it works of course I make modifications to adapt the code to greenfoot I knew it was a color problem as bufferedimage does not work on greenfoot but hey you have to find the right code but I never thought of awtColor I tried with awt image bufferedimage - awtgetImage I don't even know if we can do that I didn't succeed, anyway thank you again Spock47, a new STAR TREK film in preparation or not??? I'm kidding, don't be offended
Need Help with Collision
By Outis, with 1 reply.
Replied to by danpost, 27 days ago:
Basically, after moving, if an obstacle is touched, then move back. For example, after line 36, which moves Mario horizontally: <Code Omitted>} A bit more is involved when moving vertically when gravity is in play. See what you can do with it.
How to make something jump i am a beginner
By names, with 1 reply.
Replied to by danpost, about 1 month ago:
Hallo i started programming a month a go but i still dont know how to make a actor jump
Maybe the code in this scenario might help:
Jump and Run Demo w/Moving Platform