How To Make Label Node Fixed Into A Single Position

Discussion in 'Buildbox 3.0' started by Reverse Studios, Jan 15, 2019.

  1. Reverse Studios

    Reverse Studios Boxer

    Joined:
    Oct 11, 2018
    Messages:
    74
    Likes Received:
    17
    @NikRudenko @TreySmith @Sean Buildbox
    Currently we are using a label node and a script that sets the text our issue though is that the label is moving with the character how do we get it into one position only?
     
  2. Leighton

    Leighton Avid Boxer

    Joined:
    Jan 31, 2018
    Messages:
    373
    Likes Received:
    182
    Do you have the label in actor?
    I usually set from a static object like a cube. Delete the cube and only have static text left
     
  3. Reverse Studios

    Reverse Studios Boxer

    Joined:
    Oct 11, 2018
    Messages:
    74
    Likes Received:
    17
    Yes the label is in the actor because we use the colliders to trigger it and we are using the twisted road preset so the text is following character
     
  4. Leighton

    Leighton Avid Boxer

    Joined:
    Jan 31, 2018
    Messages:
    373
    Likes Received:
    182
    I just replicated your set up with on screen text moving with game not character.
    This text stays on screen while you play like a UI text.
    I put the text label on a cube and located in a good position on screen.
    Deleted the cube model so only text is displayed.
    I put it under "Camera" and looked good
     
  5. Reverse Studios

    Reverse Studios Boxer

    Joined:
    Oct 11, 2018
    Messages:
    74
    Likes Received:
    17
    How exactly would we do this how our game works is like when the character collides with a point on screen it would say awesome.
     
  6. Leighton

    Leighton Avid Boxer

    Joined:
    Jan 31, 2018
    Messages:
    373
    Likes Received:
    182
    You could use a "if collide"
    If collide with point then emit label with Awesome !!

    this.entity().component('Label').setText(String("Awesome !!"));
     
  7. Reverse Studios

    Reverse Studios Boxer

    Joined:
    Oct 11, 2018
    Messages:
    74
    Likes Received:
    17
    How are we going to get the other object to detect the characters collision.?
     
  8. Ahmad Naweed Rustami

    Ahmad Naweed Rustami Boxer

    Joined:
    Jul 6, 2020
    Messages:
    2
    Likes Received:
    0
    You just solved one of my biggest problems!
    I want more!
     

Share This Page