How do I make a coin system

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

I tried searching for a tutorial for coin counting, but it comes up with 2D platformer games where you need a physical collision with the coin. I don’t want that. Me and a friend are working on a city builder game where, of course, there are no coin objects to collide with.

I’m a beginner in godot and coding.

what do you mean with “coin counting”?
Increasing a variable, when i coin is collected?
Please give us more information about what you want to do.

whiteshampoo | 2021-03-29 20:44

:bust_in_silhouette: Reply From: exuin

Just have a variable called num_coins or something and whenever you get more coins, add to that number.