Hi, I'm trying to generate a 4-digit code for my game but all the things I've tried don't work. Does anybody know any way to do this?
Develop games in your browser. Powerful, performant & highly capable.
Just random 4 digits? What things did you try?
Try zeropad(int(random(10000)), 4)
Thanks so much, I put that code in and it works!
(Also, I tried generating different numbers in 4 different text sprites then combining those numbers into one text sprite)