Bb3 - Change Label Color

Discussion in 'Buildbox 3.0' started by weboha, Dec 22, 2018.

Tags:
  1. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    is it possible to change Label font color?

    i am using for score:
    this.entity().component('score').setText("Score: "+String(Settings['yourscore']));

    i tried to change color this code bu didn't work :/
    this.entity().component('score').setColor(255,255,255);
     
  2. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Why not just change the font color using the Font system within BB? No code necessary.
     
  3. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    i need different color for UI. in game i am using black, in game over UI i need white.
     
  4. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Ok. So Score 1 is Font color black and Score 2 is font color White. You can do this right from the Fonts
     

Share This Page