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?
Just random 4 digits? What things did you try?
Try zeropad(int(random(10000)), 4)
Develop games in your browser. Powerful, performant & highly capable.
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)