This is my code:
myLoader.contentPath = x & ".jpg";
I’m randomly generating a number, x, and I want to load that random jpg file. How do I put the x in there so it’ll recognize it as x.jpg?
This is my code:
myLoader.contentPath = x & ".jpg";
I’m randomly generating a number, x, and I want to load that random jpg file. How do I put the x in there so it’ll recognize it as x.jpg?
The & operator is a bitwise operator.
myLoader.contentPath = x + ".jpg";
:: Copyright KIRUPA 2026 //--
``` ```