Hey everyone! I'm currently working on my Planet Clicker game and could use some help with a specific event:
+ System: Every tick
+ Price: Matcher = Coins.Matcher
+ Coins: Matcher = Price.Matcher
-> Price: Set text to Coins.PriceDisplay
I've set a unique instance variable ("Matcher") on both a Sprite Font (named "Price") and a Sprite (named "Coins"), with each having the same unique number shared between one Price text object and one coin. The goal is to update the Price text every tick to display another string instance variable on the Coin called "PriceDisplay" (that is set every tick to the "Price" number variable on the coin so that I can use "Price" for calculations, and "PriceDisplay" for text Input.)
Additionally, I've implemented logic for when the coin is tapped or clicked to perform calculations:
+ Mouse: On Left button Clicked on Coins
+ Coins: Price ≤ Coins
-> System: Add Coins.CPSAdded to CPS
-> System: Set CoinClickAmmount to Coins.ClickMultiplier × CoinClickAmmount
-> System: Subtract Coins.Price from Coins
-> Coins: Set Price to Coins.Price × Coins.PriceMultiplier
-> System: Add Coins.ONECPSadded to OneCPS
-> Audio: Play PurchaseComplete.webm not looping at volume -10 dB (stereo pan 0, tag "")
-> VariableSetter2: Start Timer "Purchased" for 0.5 (Once)
Now, when transitioning to a different shop layout, the text boxes only display "Price," which is the default text I've set in the layout editor as the text. They are supposed to dynamically change every tick based on the game logic. Both shops share the same event sheet, and all text boxes have unique numbers matching the coins Matcher variable. However, they are not being updated to display the correct text at every tick or at all. I've debugged the layouts, and the matchers seem correct, and the Price display is correctly set to the price, but the text boxes remain unchanged.
I apologize for the lengthy post, but I would greatly appreciate any help or insights anyone can provide!