How do I set text to a font wihout value after the comma?

Get help using Construct 2

Post » Sat Jan 14, 2017 2:44 pm

Hi,
How do I set text to a font wihout value after the comma?
thanks
B
47
S
16
G
8
Posts: 803
Reputation: 8,378

Post » Sat Jan 14, 2017 3:34 pm

like this

Image
Image
B
43
S
13
G
2
Posts: 330
Reputation: 4,112

Post » Sat Jan 14, 2017 6:03 pm

thanks a lot
but i did not find set size font probably because i use sprite font
may you can take a look on my example
http://www.filedropper.com/test_26
B
47
S
16
G
8
Posts: 803
Reputation: 8,378

Post » Sat Jan 14, 2017 9:38 pm

Like this :D

Image
Image
B
43
S
13
G
2
Posts: 330
Reputation: 4,112

Post » Sat Jan 14, 2017 11:01 pm

are you sure ?
i just want that the text on the sprite font will be something like 20 and not 20.548854 (without the coma, without the values after the coma ",")
thanks anyway
B
47
S
16
G
8
Posts: 803
Reputation: 8,378

Post » Sat Jan 14, 2017 11:27 pm

int(value)
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Sat Jan 14, 2017 11:56 pm

matrixreal wrote:something like 20 and not 20.548854


that's what you should have say from start lol
yes this is correct int(value)

varFont = 20.548854

int(varFont)
result is 20
Image
B
43
S
13
G
2
Posts: 330
Reputation: 4,112

Post » Sun Jan 15, 2017 12:05 pm

excellent thank you
B
47
S
16
G
8
Posts: 803
Reputation: 8,378


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests