How can I store "coins" that is collected from multiple characters?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GrandeHolt

So I want to store all the coins for the player that used different characters, no matter which character he/she used the coin adds normally

it sounds like what you need are autoloads

OgGhostJelly | 2023-01-08 09:08

:bust_in_silhouette: Reply From: SteveSmith

Store the number of coins in a “static” variable: Singletons (Autoload) — Godot Engine (latest) documentation in English