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.
Oh wow that does seem simple. I’ll try that! Thank you very much for your reply!
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 will have to put a trigger that inputs into the in of the number behavior.
you need a once block to send into the number 0, then into the alpha on the label block.
check out the “Foreground” item in my game “Running for President” https://flowlab.io/game/play/1294695
Thank you both for the help! It was just what I needed.
(And that’s a really cool game Bmarzi !!)
Thanks, good luck in your gaming.
Can you send me a step by step on how to do it with a click on the object
Do you want it to appear when you click on the object?
Please don’t post on old topics. Dm someone or make a new post.
Please don’t revive old topics, instead start a new one.
yes when i click on the object but at the start it always starts it at 0
Show me your code. Also, other people, chill out. It’s related to the topic.
Click on the MouseClick. Click on the button that says, “detect clicks anywhere”
This is the problem at the start it sets it to one
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.
Thank you I was really confused