GameDev Market logo

2D > Environments > Miscellaneous

Asset image

Description

This template and tutorial allows you to build your own Currency Counter System in GB Studio for Buying and Selling in game.

The main feature of this template is the Currency Counter on the upper right of the in game screen. The sample shop, buying and selling feature and +1 coin feature (from interacting with the coin) are all extra stuff for you to get the entire feel of this system.

Below are downloadable files that contain the Currency Counter template.

(Made in GB Studio 3.1)

_____________________________________________________________________

WARNING: THE NUMBER OF EVENTS IN THIS SYSTEM ARE A LOT. IT TOOK ME A LONG TIME TO MAKE IT WORK SMOOTHLY. ESPECIALLY SINCE I COULDN'T MAKE A MODULUS FORMULA WORK FOR A 3 DIGIT COUNTER. THE FORMULA FOR 0-99 IS EASY BECAUSE THERE ARE TEMPLATES FOUND ONLINE BUT 3 DIGITS IS A WHOLE OTHER LEVEL IF YOU CAN'T FIGURE OUT A FORMULA.
THEREFORE I MANUALLY CREATED EVENTS FOR THE 3RD DIGITS WHICH STARTED FROM 100 - 999. SO I SUGGEST YOU START YOUR PROJECT WITH THIS TEMPLATE FIRST THEN WORK FROM THERE.

_____________________________________________________________________

 

Before you begin using this template I would like to give you a few reminders.

1. I highly recommend for you to start your project with this template first then build your game from then on. Because the script 'Player Coin Counter' resets whenever you copy the Event onto another project. Therefore a very tedious process switching all animation states of all digits. (You'll understand once you see the script). You may also just duplicate the sample mart I made and just change the background, the Currency Counter wont be affected. *It is only when you copy the digits actors onto another scene or project messes the animation states up.

2. I made all variables far down the list between Variables 118-125 so it won't affect any of your variables that are near the numbers 1-10 if you do copy the scenes in this template to your projects.

3. Make sure you place the 'Player Coin Counter' Event on "Init" scene, on actor and/or trigger if you want it to update properly as you interact with everything in scene, also - depending on what you want to achieve. 

You can't place too many in one list though because the build won't run properly since the currency counter has a lot of topdown events inside.

4. I have tested using the increment variable by 1 adding +1 (coin) to the Currency Counting System from 1-999 and was successful. Also tested  going beyond 999 and going below 0 and it's all good.

5. Make sure your animation states for the numbers sprites are adjusted if you do choose to transfer this template to another project. (*The number digits are behind the coin banner if you are wondering where they are during gameworld mode)

(November 12, 2023 Update)
I made the counters appear simultaneously on each 0.1 tick after every interaction.

By supporting what I do, it encourages me to do more!

Thanks for dropping by!

Special Thanks to:
Jan Schneider of Murder Mansion (Assets used for Sample Mart)

Report asset

Media

Author Details

andraiantonio's profile image

Active Since: April 2025

Published Products: 1

Followers: 0

Reviews

This asset has not received any reviews yet.

You must be logged in and have bought this asset to leave a review.

Comments

To leave a comment, please log in
Be the first to leave a comment.

Licence Info

Great news! All assets on GameDev Market come with our standard Pro Licence.

Whereas some asset stores have multiple licence versions, we believe having only one licence keeps things as simple as possible for our users, so that you can keep on doing what you love without any doubts over where and how you can use your assets.


At a glance, here are some of the key points from the licence:


 You can:

  • Make changes to any asset bought/downloaded
  • Use the assets and any Derivative Works in Media Products, whether commercial or non-commercial, with no restriction on the number of projects

 You cannot:

  • Use the asset or Derivative Works in a logo, trademark or service mark
  • Sell, share or redistribute the asset or Derivative Works outside of the Media Product
  • Allow the user of the Media Product to extract the asset or Derivative Works and use them outside of the relevant Media Product.
  • Use assets bought on GDM to create NFTs

You can check out the full Pro Licence here.

GB Studio Currency Counter System Template

Handcrafted by andraiantonio

$3.00

(VAT may apply)

Please login/signup to add this product to your wishlist.

Technical Details

Name Value
Version GB Studio 3.1
Last updated April 24, 2025
Included formats gbsproj
Created in GB Studio
File size 290.44 KB
Changelog N/A
Vector
Layered
Sprite

*You will receive an email once per week when any Followed Creators list new assets

Share & Earn

Log in and Share this asset and your Alliance link will be included, meaning you will earn money back on any sales/purchases made by new members joining through your link! See the Referral Guide for more details.


GameDev Market logo

GameDev Market is a marketplace for high quality, affordable game assets handcrafted by talented creators from all around the world.

GameDev Network Limited is registered in England & Wales (08951892). Registered office: Baltic Co-Working Space, 12 Jordan Street, Liverpool, UK. L1 0BP. ICO registered (ZA122213).

© 2025 GameDev Network Limited. All rights reserved.