@Entity1037, you asked for it, you got it. Well, it is not exactly what you asked for -- no fading, no totally black screen, etc. But, those can still be implemented. I had something like this in mind for a while now and just never got around to doing it. I side-stepped the idea when I created the code for banning specific users in my Private Messaging scenario where I just go to a new world giving a 'banned' message and stop the scenario. Well, that is when it crossed my mind.
Referring back to Lives and respawning Tux, the code is better off in the world class, however, it should work still in the Lives class. Looking at the greenfoot.Actor class documentation, you will see that 'getObjects' returns a List object and therefore cannot be compared to an integer and will never be null. Looking at the methods in the java.util.List class documentation, you will find an 'isEmpty' method which you can make use of.
Add a 'get' method to the Lives class to return the current value. Then in the world, add an act method that checks for a Tux object in world. If not in world, decrement the lives counter and check its value against zero. If zero, stop the scenario; otherwise, add a new Tux object into the world.
I had downloaded an earlier version of it. I could start a discussion and post the class codes there or you could supply your email address and I can get it to you that way.
@GreenHouse, I would not actually call it working. For example '9 + 9 =' followed by '+ 9 =' returns '45'; '+ 9 =' again returns '99'; and again '207'! But, then again, Ed.Betteridge did say it was buggy. Not bad for a first project, though. I expect impovements are forthcoming.
It appears I was wrong, but you can run your scenario to the largest world and then upload it (this would mean you may have to upload it twice; one to get the icon you want and a second time to correct the scrollbar situation).
@FlyingRabidUnicornPig, I believe in you manually create your largest world, then manually create that world you scenario begins in, then upload the scenario, the scrollbars should not appear. I could be wrong, but I think that would work.
2013/10/2
C6S13B Vote
2013/9/30
Password Protection Class
2013/9/29
Tux
2013/9/29
Tux
2013/9/27
Calculator
2013/9/25
Calculator
2013/9/21
Aliens
2013/9/21
Aliens
2013/9/21
Aliens