Get The Current Scorecoins Value

Discussion in 'Buildbox 3.0' started by VegaStudio_Kevin, Apr 24, 2019.

  1. VegaStudio_Kevin

    VegaStudio_Kevin Boxer

    Joined:
    Apr 23, 2019
    Messages:
    5
    Likes Received:
    0
    Hello,
    i'm new in BB i hope someone can help me.
    Is there a function like: this->scene().showScoreCoins() to get the current ScoreCoins value or is there only the addScoreCoins function available. I want to calculate some variables depend on the ScoreCoins.

    Thank you.
     
  2. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    this.scene.currentPoints(0);
    this.scene.bestPoints(0);
    this.scene.totalPoints(0);
    this.scene.currentGlobalPoints(0);
    this.scene.bestGlobalPoints(0);
    this.scene.totalGlobalPoints(0);
     
    VegaStudio_Kevin likes this.
  3. VegaStudio_Kevin

    VegaStudio_Kevin Boxer

    Joined:
    Apr 23, 2019
    Messages:
    5
    Likes Received:
    0
    Thank you this is for Points :/. Can you help me i can't get the value with -> this.scene.totalCoins(0);
     
  4. VegaStudio_Kevin

    VegaStudio_Kevin Boxer

    Joined:
    Apr 23, 2019
    Messages:
    5
    Likes Received:
    0
  5. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    I don't know too.
     
  6. Sean Buildbox

    Sean Buildbox Serious Boxer

    Joined:
    Sep 24, 2015
    Messages:
    902
    Likes Received:
    1,076
    Currently as for coins there's only one method to get coins: this.scene().coins()

    We actually did just add in some newer functions for the next update that will work as well like: currentCoins, bestCoins, totalCoins, currentGlobalCoins, bestGlobalCoins and totalGlobalCoins so more will be accessible ;)
     
  7. VegaStudio_Kevin

    VegaStudio_Kevin Boxer

    Joined:
    Apr 23, 2019
    Messages:
    5
    Likes Received:
    0

Share This Page