Hello, Im trying to create a Currency Counter for my Game
I can’t seem to figure out how to do it and I want the currency counter to be able to track currency after you interact with coins and count them in the counter and also add them in the inventory too
I really need some assistance
This is the code and global variable I used
when trying to make it but it did not work
It’s adding the coin to the inventory but not to the global variable. You need to either increase the global variable as well or after adding it to the inventory get the value directly from the inventory.
IMO, you don’t need both a variable and the inventory.
what im trying to do is show the amount of coins the player has collected so that way the coins are in their inventory and you can track how much you have through the text object
Nevermind I solved the problem
You could do: condition: “player” is in collision with “coin”, action: create object: “coin_icon” at X distance from “coin_icon” = (your preferred distance between each one)
you don’t necessarily need to use the inventory system, believe it or not; to create a rising platform in my boomer shooter, I gave it the 3d jump behavior with the gravity set to 0!