There’s a danger in trying to divide your logic into many many tiny scripts like that. It becomes very object oriented and it doesn’t really fit with the design of Defold. What you can do is to separate the health, coin and item logic into individual Lua modules that your gui can use depending on the case or state.
7 Likes
Ok then