I am making a game based on the Legend of Zelda NES. I am trying to make it so the main character can pick up a sword, and the sword will stay with him between all the worlds/areas. The only way I could figure out how to do this was using a static variable, but it doesn't reset when I reset Greenfoot, which I need so he has to pick up the sword again.
I don't really have any code trying to do this because I couldn't find anything online, so any help appreciated.

