Hi! I'm working on a vending machine game for school. One requirment is that as the user puts the coins in, the cotrolling sprite is supposed to say the new balance of the money in the screen. I have a variable called "money" that changes as more money is put into the machine. Right now what I have isn't working, I can't put a dollar sign in front of the value or "dollar" or something after it. This is what I have right now.
When I recieve [Balance v] //Should be a hat block, don't know how to fix say (money) for [1] secsI tried putting a "say: your balance is" block before my sprite says the variable, or putting a "say: dollars" block after my sprite says the balance, but that just looks clunky and doesn't work. Any ideas???
Offline
There is a join block in operators.
try (I can't remember the scratchblocks code)
say (join $ balance) for 1 secs
Offline