to code coins
go to the ⚙️ icon
make variable
name it anything you want (recommended name: Coins)
Select how you get coins
"When ______________
Change (variable) 1 [relative]
Save variable"
To code the buying thingy,
"When the actor is tapped
If (variable) less than (shark bite cost)
Create text box "Not enough (variable)
Else
Change (variable/shark bite) 1 [relative]
Change (variable) -30 [relative]"
sorry if my grammar is bad