View Full Version : Variables & 3D text
rocki
09-04-2008, 01:32 PM
Is it possible to display the value of a numeric variable using 3D text? If yes, how is it done?
Thanks
j rocki
x2495iiii
01-15-2010, 12:05 PM
It is. Go to the functions tab of the world and scroll down until you find "what as a string." Now, insert a "Set text to" method for your 3d text and use default string as the text value. Then, drag the "what as string" function over that text value, then select your number variable from the popup menu. Your 3d text should now be displaying the value of your variable in double form (with a decimal and a zero attached to the end. This can't be fixed, but most don't mind).
zonedabone
01-23-2010, 04:20 PM
The decimal at the end actually can be fixed, although the solution is everything but conventional. instead of just putting your variable in the "What as string" function, drag the "Random number" function into it. Set your number as the minimum and maximum attributes. Set integer onlyto true. this is the only known way to counteract the issue.
x2495iiii
01-23-2010, 10:38 PM
It didn't seem to work for me. Any chance you could post a world with a working example?
zonedabone
01-28-2010, 04:33 PM
I added a function to the world that does this! It will retain the decimal on numbers that need it, while getting rid of it on integers! Floating point! It gives a string, and you definitely don't want to do any math on the output, even though it's possible to make the output a number. It outputs true! Anyway, here's the world:
2397