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
Image scale issue
By SwaggyXiao, with 4 replies.
Last reply by SwaggyXiao, almost 5 years ago:
OMG MR COHEN!!!! YES! I FIND THAT ONE POTENTIAL REASON MY PROGRAM CRASH IS BECAUSE I DO SCALING 10000 TIMES ON THE CONSTRUCTER. PNG SCALING DOES NOT WORK WELL ON PREVIEW LOL SO PROBABLY I NEED TO FIND ANOTHER TOOL! OMG WHY YOU ARE ON GREENFOOT WEBSITE ALL THE TIME HAHAHAHAHAH!
Spelletje programmeren hulp gezocht
By Ilaria, with 6 replies.
Last reply by Ilaria, almost 5 years ago:
Oke, thank you. @Danpost
remove bullet when reaching edge - MVC
By Milka, with 3 replies.
Last reply by danpost, almost 5 years ago:
In
KogelView
class
update
method, you would need to check with: <Code Omitted>and then remove the
KogelView
object from its controller to effectively remove the bullet it controls.
Loading external images
By Commentator, with 3 replies.
Last reply by MrCohen, almost 5 years ago:
Sorry I hastily chopped two parts together. Thanks for the correction. I'm curious if this will solve OP's problem
Compressing size of scenario
By Roshan123, with 2 replies.
Last reply by danpost, almost 5 years ago:
Roshan123 wrote...
Will it work my re- scalling an Image???
Best to scale images with an image app like
Paint
. Image manipulation during program execution can increase the possibility of lag (or increase the present lag). Reducing the entire size of your scenario would probably help as far as lag is concerned Think of it -- cutting all length in half would reduce image file sizes to one fourth (1/2 by 1/2). Removing image files not required for the scenario would help load time.
Heads or Tails game
By Tycr, with 9 replies.
Last reply by danpost, almost 5 years ago:
Tycr wrote...
https://www.greenfoot.org/scenarios/27252
You need to upload it again (update it) -- this time, just make sure to check the "
Publish source code
" box.
Text/char input
By Commentator, with 3 replies.
Last reply by danpost, almost 5 years ago:
Might want to also restrict the key returned to being character values of at least 32 (to printable characters). Line 10 in Hippo's code could be: <Code Omitted>
Change Window Location
By Commentator, with no replies.
Is there a way to automatically change the window position of Greenfoot? Especially of the exported versions, in a way that I can e.g. change monitor the game is shown on via ingame settings
I need help
By Yoyoyo, with 1 reply.
Replied to by danpost, almost 5 years ago:
Yoyoyo wrote...
How do I gather all objects of a actor class in a variable?
For what purpose? What are you going to do with the list? I suspect you will iterate through the list either to do something with all the actors or with specific types within the list, in which case: <Code Omitted>
Showing text above a moving actor
By Roshan123, with 50 replies.
Last reply by danpost, almost 5 years ago:
Roshan123 wrote...
tell me what is the real size of my scenario Is it size or size on disk
Image and sound files are usually what makes up the majority of the size of large scenarios. The number of classes and number of dependencies between them can influence load time; but, again, image and sound files are a much greater influence.
scaling an image properly
By ancalagorn, with 4 replies.
Last reply by ancalagorn, almost 5 years ago:
I hear you. The reason i ask is because i am a school teacher and on of my students told me about this problem and when i looked at it i found out that most of the time it's ok and only sometimes this problem appeared in the game and i didn't know how to explain it (i still don't) because i'm not java expert. Anyway thanks
Change World background color based on start menu
By thunesm, with 2 replies.
Last reply by thunesm, almost 5 years ago:
Thank you very much. It worked perfectly.
Tile matching game tutorial?
By earnold, with 2 replies.
Last reply by earnold, almost 5 years ago:
Thanks Danpost. It will take me awhile on weekends...
How to make a high score?
By jenhasnofriends, with 14 replies.
Last reply by jenhasnofriends, almost 5 years ago:
Thanks so much for all the help today man. Really helped me with my school project.
Count through multiple worlds?
By jenhasnofriends, with 6 replies.
Last reply by jenhasnofriends, almost 5 years ago:
Thank you!
93
94
95
96
97
98
99
X