Currently I'm experimenting on a shop/inventory sub-system. One of the things that I want to try on is to set a multiplier/max number allowed button for the shop.
1. I have 1000 coins.
2. Price for Item A is 11.
3. Clicking on a buy max button with Item A selected will spend all my coins on Item A.
4. I should end up with 90 item A and 10 Coins left.
Where is the starting point for this?
What do I need?
Obviously I will need at least a button...