Expression needed about numbers / variables to display

Get help using Construct 2

Post » Wed May 14, 2014 10:50 am

(distance(playership.x,playership.y,sun.x,sun.y) this is my expressions to display with text distance.
So when 'playership' is 10000 pixels far from 'sun' text show 10000. I want make expressions that do not show a 10000 but 1
an when 'playership' has been 20000 pix far from 'sun' text show 2 etc.
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555

Post » Wed May 14, 2014 1:30 pm

bump
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555

Post » Wed May 14, 2014 1:38 pm

What about int(distance()/10000)
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Wed May 14, 2014 1:51 pm

@granpa YES!
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555


Return to How do I....?

Who is online

Users browsing this forum: bluesun66, HenryPK, Malhog, plinkie, Syazanie Amirin and 1 guest