Zeropad()?

Discussion and feedback on Construct 2

Post » Mon Nov 21, 2011 7:40 pm

It seems C2 doesn't recognize zeropad(). Has it not been added yet? Is there a way to simulate zeropad() with just events?
Image
B
230
S
27
G
13
Posts: 1,776
Reputation: 18,153

Post » Mon Nov 21, 2011 8:06 pm

This will work just like zeropad(n,8):
left("00000000", 8-len(str(n))) & n
B
82
S
26
G
63
Posts: 4,844
Reputation: 45,728

Post » Mon Nov 21, 2011 8:23 pm

Oh cool. Thanks man!
Image
B
230
S
27
G
13
Posts: 1,776
Reputation: 18,153


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, Kyatric and 9 guests