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
simulation covid
By beghalia97, with no replies.
l'ai besion un expmle pour simuler les épidemie de covid
using TrueTypeFont for GreenfootImage
By SammyFORreal, with 1 reply.
Replied to by SammyFORreal, over 3 years ago:
Okay I found the solution by myself. By creating a new GreenfootFont, it just stores a java.awt.Font inside, which is private. So by simply doin' Reflections stuff, I'm able to load a font from a .TTF file.
(Can't be .OTF!)
Collision
By Davidson, with 2 replies.
Last reply by Davidson, over 3 years ago:
Thank you
Close the game with a click.
By Maniak, with 1 reply.
Replied to by Jhonathan, over 3 years ago:
You can use isTouching and showText method for it <Code Omitted>
How do I move without rotating my actor?
By Billkingtang, with 7 replies.
Last reply by Billkingtang, over 3 years ago:
The problem looks like it stems from the if (obj instanceof Zombie) continue; If I remove that then I dont run into the problem. Is there any possible solutions? I think the problem is when there are no pedestrians nearby the loop doesn't know what to do? EDIT: I found a solution to the problem. I simply used a conditional to check if the obj was null.
My cooldown timer won't work
By li66m, with 4 replies.
Last reply by li66m, over 3 years ago:
Super_Hippo wrote...
No. Start by commenting out line 17.
nevermind I was able to figure out the problem myself. Thanks for the help though!
Go to a location
By AbdulrazaqAS, with 7 replies.
Last reply by AbdulrazaqAS, over 3 years ago:
Super_Hippo wrote...
I guess the variable velocity is too high, so it travels over the point back and forth. You could try to set it to the location if it’s closer than the velocity. <Code Omitted> Not tested.
Thank you, it worked.
TEM BRASILEIRO AQUI????
By JohnGomes, with no replies.
Criei uma comunidade no facebook para Brasileiros. Lá podemos compartilhas nossos projetos, dúvidas e experiências !! Quem topa? https://www.facebook.com/groups/1317966762049699
download???
By jokaman, with 13 replies.
Last reply by Roshan123, over 3 years ago:
RcCookie wrote...
I think you better want to use the search bar above the request list, that shows up without any keyboard shortcuts.
Yes that would work efficiently, infact u were the only one who taught me to press ctrl+shift+f when I was confused between bottom & upper search bar. So I preferred to give the
short keys
I will post A game in between this april and may
By sashvanth, with no replies.
planning to cretae a pioano
Problem
By ADAM68801, with 1 reply.
Replied to by Super_Hippo, over 3 years ago:
Use a variable and set it to two. Upon hit, instead of removing the actor, decrease the value by one and check if it reached zero and remove the actors then.
Actors (graphics) only show up when the game gets to the end, instead of during
By newgfteacher, with 4 replies.
Last reply by newgfteacher, over 3 years ago:
RcCookie wrote...
You can use getWorld().repaint() to force repaining, or only make one input request per act cycle. Greenfoot only renders the world after the frame, so no blocking actions should be used.
Finally got my head around the act thing and it is working! Thank you!!
danpost wrote...
newgfteacher wrote...
The graphics should be showing up after each guess has been entered by the user (using Greenfoot.ask).
If I were to do a
Wordle
game (which I have a non-uploaded test scenario using 2 different words and no dictionary to check word entries), I would not use the
when i add more than 1 enemy, the new one despawns
By Aaron-aid, with 3 replies.
Last reply by Aaron-aid, over 3 years ago:
holy crap im so stupid, thx man
simple implement that my game stops after some timer
By Flipper3000, with 4 replies.
Last reply by Aaron-aid, over 3 years ago:
Aaron-aid wrote...
do you want to stop the program or change the scene to say they failed a mission? because you can change scenes by doing Greenfoot. int def_Val = 20; int timer = def_Val; act(){ timer--; if(timer <= 0) { Greenfoot.setWorld(new newWorld();) timer = def_Val; }
ignore this, the second one is right
Problem in importing Socket class
By Roshan123, with 2 replies.
Last reply by Roshan123, almost 4 years ago:
Oh, ok. Thanks for the answer. To be honest I thought its a problem in my editor
42
43
44
45
46
47
48
X