How do I Use Old school Score systems

Get help using Construct 2

Post » Fri Apr 08, 2016 4:21 am

So I'm trying to add a score to my game but the way I want it is to have It start at 00000000, but then when points are earned it goes to 00000100. Instead all I can seem to do is turn my score into 100 and it gets rid of all my other 0's
B
9
S
4
G
2
Posts: 39
Reputation: 1,805

Post » Fri Apr 08, 2016 5:00 am

System expressions

System expressions wrote:zeropad(number, digits)
Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045".


Image
Image
Image
B
63
S
23
G
7
Posts: 1,480
Reputation: 10,796

Post » Fri Apr 08, 2016 5:22 am

korbaach wrote:System expressions

System expressions wrote:zeropad(number, digits)
Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045".


Image
Image



Perfect thanks for the help
B
9
S
4
G
2
Posts: 39
Reputation: 1,805


Return to How do I....?

Who is online

Users browsing this forum: varr and 5 guests