Hi!
I decided to try and make a game for my biology project as I thought it seemed easy enough, which it turned out not to be. I got the camera and movement working, now I just need text.
I tried using labels that would appear once you collided with the doctor, but the problem is that the label is constantly showing.
I tried with alerts, and that is pretty much what I want, but the problem is that I don’t want the alert box to be in the middle of everything.
So what is easiest: Making text invisible and appear only when colliding with an object or move the alert box? And how do I do either of the above?
I hope I make sense.
Hello! Welcome to flowlab.io. Making labels disappear and appear is simple. When you want it to disappear, input a 0 (number) into the alpha input and when you want it to appear, input a 100 into the alpha input of the label behavior.
You can use the label block and have it start with a 0 in the alpha, then at the point you want it visible send 100 into the alpha. To make it invisible again just add a timer block that sends another 0 into the alpha.
Thank you for your answer! Probably a silly question, but how do I make it start with a 0? I tried just making a number with 0 and putting the out into alpha, but what do I need to put into the number? : )
You have the lines (whatever they are) connected to the Numbers “Set” input. Which the Set is for making other numbers change the number.
For example if you have a 3 Number plugged into the set of a 10 Number, it will set the 10 number to 3.
You want to plug the lines into the “Get” input to retrieve the number and pass it forward into the label.
Edit: Which explains why the Once is turning the number to a 1, cause it doesn’t know what to extract so 1 is the default number.