Coin Vs Point?

Discussion in 'Buildbox 3.0' started by ThomasC, Nov 13, 2018.

  1. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    Hello,

    I'm trying to award my character a coin (not a point). Anyone know how?

    I know there's the smart asset coin but it seems to only award a point.

    I need to do this because I'm using a work round for a menu jump and still need to keep a scoring system.

    You can menu jump by setting an event observer and saying menu jump when character gets x amount of coins/points.

    So I'm trying to do that as well as keep a scoring system.

    Thank you :)
     
  2. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    342
    Likes Received:
    163
    Smart bro, good idea for the menu jump. Why not just use the coin for your Event browser menu jump so you can continue to use points? Im assuming you must also be using coins in your game?
     
  3. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    That's what I'm trying, but I can't seem to find a way to award myself a "coin". I can set a label to session coins and I see no way to add a coin or make it move from 0 to 1 coin.

    Even the coin asset itself just adds to your overall "point" total not "coin" total.
     
  4. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Experiencing the same problem , have you tried contacting support ?
     
  5. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    342
    Likes Received:
    163
    Yep, I see that. I haven't played with the coin asset until just now. You're right, currently there is no way to add a coin to the player without it being added as a point.
     
  6. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Is it possible that it is not showing that a coin is collected but it is actually collected and might work for session coins observer but not for being displayed as a score type.
    Last I check coin asset also had a add point node instead of add coin , can't remember.
    Also you might be able to tweak the nodes by coding if you are capable of to set it for coin.
    (I don't know coding so can't say anything )
    By the way if you find a solution please share.
     
  7. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    342
    Likes Received:
    163
    I tested the Event Observer, doesn't recognize the coin asset, does absolutely nothing.
     
  8. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    figured it out! you have to change the code in the point node for coin- just change:


    this.scene().addScorePoint( amount );

    to :

    this.scene().addScoreCoin( amount );

    and leave everything else the same :)
     
    Avinash Chimata, Stryder and nyamuk91 like this.
  9. Paul Ingram

    Paul Ingram Boxer

    Joined:
    Oct 3, 2018
    Messages:
    16
    Likes Received:
    25
    Yep! Was just about to post that. I'm working on the same 'hack'... coin = menu jump. Thanks for confirming, @ThomasC
     
  10. Paul Ingram

    Paul Ingram Boxer

    Joined:
    Oct 3, 2018
    Messages:
    16
    Likes Received:
    25

Share This Page