Log In  
Log In  

finaly found my way in 2 code line to display the sting of a 5 digits score:

sc="00000"..tostr(score)
sc=sub(sc,#sc-4,#sc)

Well perhaps you guys got something better? lol

time to update this to my pico games! 8-)

P#63478 2019-04-13 18:05 ( Edited 2019-04-14 03:27)

:: Xii

Hey, clever way of padding strings. Thanks for sharing!

P#63485 2019-04-14 01:20

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-23 23:10 | 0.011s | 2097k | Q:14