• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Buying lives with coins

Scheduled Pinned Locked Moved Unsolved General
4 Posts 3 Posters 38 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    richard
    wrote last edited by
    #1

    We want to implement a lives system in our game, similar to these screenshots from Candy Crush Saga.
    Ideally this would be in the marketplace - having a Coins virtual currency and a Lives VC,
    But it doesn't seem to be possible. What alternative implementation would work?
    thanks
    0dba5bd7-b1b7-4a10-bf87-f9c7bd5ae41f-image.png

    1 Reply Last reply
    0
  • J Offline
    J Offline
    JasonL bitHeads
    wrote last edited by
    #2

    You can keep using the brainCloud VC system for the user’s Coins, but track their lives using User Entities that store the Lives count and timestamps, etc.. This gives you more control and flexibility over your Lives system.

    1 Reply Last reply
    0
  • R Offline
    R Offline
    richard
    wrote last edited by
    #3

    In future we want our store to have a catalog including life packs, cosmetics, badges etc.
    To avoid complicating the client, if we defined items in the catalog such as '3 lives pack', '5 lives pack', is there a suitable Cloud Code API hook where we could update the User Entities as you suggest when the user completes a purchase?

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote last edited by
    #4

    HI @richard - we're currently working on a feature that will handle this directly for brainCloud 5.9.

    In the meantime, an interim approach would be to:

    • Manage the Lives in a virtual currency.
    • In the item catalog - you can indicate the currencies to award from the offer via the extra data JSON.
    • And create a post-hook on PurchaseUserItem - calling a script to award the appropriate currencies - and immediately consume the new "item" that was purchased...

    Just a thought...

    [But yeah - we're going to have a more direct solution in 5.9 - which is currently targeted for November release.]

    Paul.

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users