Paykash
2 months agoMHCP Member
New World Guidance... Currency Gizmo?
Hi, I'm Plee.. new creator in Meta. So excited to be learning truly with this community.. but I also don't want to be taken advantage of. Looking for an efficient way to promote, keep visibility and...
- 2 months ago
Use persistent variables, docs at https://developers.meta.com/horizon-worlds/learn/documentation/typescript/getting-started/persistent-variables-v2
One simple way would be to use a number persistent variable and call it money. When you want to display current money, use get on money persistent variable, when you buy get, subtract from current money and then set again (make sure to check they have enough money first). You can use the same persistent money through your other worlds as well, so if they earn money in one, it will shop up in your other worlds too.