I am trying to make it so that the shop button wont do anything unless I have enough coins but I cant figure out how and I would prefer to not have to use the same code as the shop examples because those are way more complicated than I know how to do or change.
You need a Message, Mailbox, and Switch behavior to do that. You could do the same thing like the other object except you have to do with Switch.
1 Like
Could you elaborate on what other object you mean?
You would use a Message to send numbers to the Shop object, use Mailbox to take out that value to check with the Filter (Filter should be set “greater than or equal to”). Then wire the “pass” output to the “on” input, “fail” to the “off” input of the Switch, the “down” output of the Mouse click behavior should wire to the bottom output of the Switch. If the value is enough or greater, the Switch should be turned on in the Shop behavior, that’s when you’re able to click the shop.
1 Like