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
The Future of Greenfoot
By peanut1001, with 1 reply.
Replied to by Proprogrammer04, over 7 years ago:
peanut1001 wrote...
Hello everyone. I am fairly new to Greenfoot and was wondering if anytime in the future Greenfoot will be able to program in 3D spaces rather than just 2D.
There are some 3D engines by now, you just have to search for it. But Greenfoot isn't made for running 3d games, so they are very laggy...
Falling Objects
By FortniteMaster69, with 3 replies.
Last reply by Scorcher, over 7 years ago:
Your Ball code would only need to have the falling speed, not anything else I wrote earlier: <Code Omitted> You would need to add this method to your World code: <Code Omitted> U
Change an images color.
By Notted, with 31 replies.
Last reply by Notted, over 7 years ago:
Nevermind! The problem was that world ref wasn't correct. It didn't point to the right world, which is Space.
Attempting to spawn actors on a timer
By HappyDragon78, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
"mainEnemy()" is a method, "mainEnemy" is a variable. In your case, you set "mainEnemy" to a "MainEnemy" object in the world. You want to spawn new actors though. So you can remove line 28 and change "mainEnemy()" in line 30 to "new MainEnemy()". You need to add a call to the method from the act method. I suggest to add the "enemySpawn" method into your world subclass instead, though.
I Need Help with a Count Down Timer
By chrishmas, with 10 replies.
Last reply by chrishmas, over 7 years ago:
danpost wrote...
danpost wrote...
Add
showTime();
to the
act
method.
That worked! Thank you so much! :)
Animação no personagem
By Diego_1D, with no replies.
Boa Noite Preciso de uma ajuda... Como faço para meu personagem andar em passos? Desde já agradeço
Need Help with falling object and making it rise smoothly when I click on it.
By rycode, with 19 replies.
Last reply by rycode, over 7 years ago:
I solved it, in my world subclass, at the end I had "setLocation" method called for. And I also changed the size of the world. Works great now, thanks for everything you did.
Platforms
By FortniteMaster69, with 4 replies.
Last reply by FortniteMaster69, over 7 years ago:
Thanks for the help the velocity = 0 worked. So as soon as the actor touches solid ground they do not move. Thank you!
Overlay (HUD) in Scrolling World
By Syes, with 1 reply.
Replied to by danpost, over 7 years ago:
Syes wrote...
Hey, I´m using danpost ImageScrollWorld (https://www.greenfoot.org/scenarios/19020) to move my Player around . My Problem is that I want tow Actors (e.g. Health & Mana Bar) to be on screen and unaffected by the scrolling. I tried to create a subclass as "Overlay" of the ImageScrollWorld and place my Actors on that but that did not work for me. Can someone point me in the right direction?
Just place the following line in the
Health
and
ManaBar
classes: <Code Omitted>To effectively prevent them from being moved.
Reading int with prefix from a file
By Limthu, with 4 replies.
Last reply by Limthu, over 7 years ago:
perfect, It works, thank u so much! :3
sorting arrays
By marathonfc, with 1 reply.
Replied to by danpost, over 7 years ago:
marathonfc wrote...
Hi I need some help sorting a histogram array by their values from lowest to highest and also by their numbers of counts from highest to lowest. .
Please show what you have -- code-wise (as your question is not expressed clearly). Need to see array set-up and need to understand what you refer to as
value
and
count
.
forever scan on download
By FRAZZ, with 1 reply.
Replied to by FRAZZ, over 7 years ago:
Windows 10 x86 that is ...
Using Packages with Greenfoot
By Xevinaly, with 2 replies.
Last reply by Xevinaly, over 7 years ago:
Thanks for the heads up. I was able to move all non-rendered code to the other packages.
Line of Sight
By LobsterL, with 4 replies.
Last reply by LobsterL, over 7 years ago:
Thanks a lot Danpost. You truly are a Savoir.
Timed Power Up Help
By luismystic, with 1 reply.
Replied to by danpost, over 7 years ago:
luismystic wrote...
i want to make it so the speed only increases for 10 seconds rather than for the rest of the current instance.
Add a timer field. Set it to 800 or so when powerup is eaten. Separately, in act, if timer is greater than zero, decrease it and if, upon that, it becomes zero, reset the speed: <Code Omitted>
191
192
193
194
195
196
197
X