question

Albertus Ari Kristanto avatar image
Albertus Ari Kristanto asked

Adding User Virtual Currency

Hi, Guys.

I'm wondering the best way to add user virtual currency.

Should i use Cloud Script or just use built-in function (AddVirtualCurrency) from Playfab Client API?

Thankyou!

CloudScriptIn-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The reason the Client API call is de-activated by default is because the majority of games need their virtual currency to be secure from cheating. Turning on that API gives the client control over the VC balance, making it trivial for a hacker to cheat. So in general, we recommend only updating VC as a result of the PurchaseItem API call and server authoritative actions (like Cloud Script that you've written adequate cheat checks into).

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.