How Can I Add Coins In Start Ui?

Discussion in 'How Can I...?' started by sws, Apr 23, 2020.

Tags:
  1. sws

    sws Boxer

    Joined:
    Apr 20, 2020
    Messages:
    26
    Likes Received:
    6
    I would like the user to be able to add coins in the Start UI or perhaps a Store UI before starting the game. However, the code is: this.scene()['addScoreCoin'](30);

    It gives me an error because I am not in a Scene yet and does not add the coins...is there another way of doing this?
     
    5petersonzachary likes this.
  2. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    548
    Likes Received:
    162
    Add an object into the UI, go into that objects node map and add an add point node and set it to 30.
     
    sws likes this.
  3. sws

    sws Boxer

    Joined:
    Apr 20, 2020
    Messages:
    26
    Likes Received:
    6
    Oh gosh...thanks for for the answer. Seems so obvious now haha
     
  4. panceh

    panceh Boxer

    Joined:
    Nov 4, 2016
    Messages:
    7
    Likes Received:
    0
    how did you handle this ? :(
     

    Attached Files:

Share This Page