In the screenshotted code, it says “worked!” when I set leftChack
to 22, what it’s supposed to be at the start of the game. I try to plug in math so it does it automatically, but It just doesn’t cooperate with me.
That’s because the first input within the boolean block is a text block, make sure both are the same type between text and number.
You can’t put a text and number in the same boolean block.
ohh, thanks!
How do I change it to a number block?
Try dividing it by a certain number (10, 100, etc) so it is a value between -9 and 9 and then have it round down.
What?
currentSelection
is a value of both x
and y
so I just have to separate them with those blocks, I forgot they turn into strings. I’m asking how to convert a string to a numerical value.
Your going to have to use a bunch of if’s and if else’s.
The way you use them is to check if a string is the same as a string that is a number
then if its true, turn a property into said number in the 2nd string
welp, I guess a lot more ifs haha.
Thanks anyway!
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.