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

What is happening right now?

danpost

reply to Help for score variable to be accessed across worlds and actors

By danpost - 1 minute ago
yipyip wrote...
What can I do to my EndWorld to have it access that final score? I need to display is as text. Also would it be possible to have my actors access the score value while its increasing?
Any active actor in a GameWorld instance has access to that world simply by using the following: <Code Omitted>Then, the score of the game is acquired by what follows the equal sign in the following code line: <Code Omitted>You can display that value in the EndWorld world when you create that world (from within an actor).