This site requires JavaScript, please enable it in your browser!
Greenfoot back

What is happening right now?

danpost

reply to I want use a variable in multiple actors

By danpost - about 7 hours ago
Afternoon wrote...
I tried to make the lives variable in the world and have the actors access it from there but it doesn't work. This is my code in the World. << Code Omitted >> My goal is to have three heart actors disappear as life decreases and a player actor that decreases life when they get hit. Can someone please help?
Instead of three different Life# actors, try just one displaying the correct number of lives. You could start with the following: <Code Omitted>With this, you can keep a reference to the single Lives object in your Sea class: <Code Omitted>
MrParakeet25

reply to My game is not woking exported as html

By MrParakeet25 - about 13 hours ago
I was able to fix the bug with my own project by uploading the game using version 3.8.2 which I archived here: https://archive.org/details/greenfoot-windows-382