Some variables and functions which are used globally over all levels.
How many lifes the player has left.
Player is active and not death.
Player is grown or not.
On which MapNavNode is the player on the main map.
It's the nodes ID.
The MapNavNode the player is on.
It's the node entity itself.
The star counter.
A dictionary which determines if a star is already collected.
The coin counter.
If the player has 100 coins, actual_lifes is plus one and actual_coins is set to 0.
Adds one coin to the coin cointer. Resets it and adds one life if it reaches 100.
Adds one star to the star counter.
Returns if a star is already collected or not.
Back to [Scripts]