Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2895

Help and Support • Loading a nil passage gives an error in lua [SOLVED]

$
0
0
When I get lua to load an image (using code like "Graphics.loadImage(Misc.resolveFile("example.png"))") and it's nil, I receive an error.
This is obviously to be expected, however, I want to make it so if the image path is nil, then it will load a different image. The problem is that the error is triggered by loading the image, instead of when lua draws it.

Statistics: Posted by AiriableConditions — Fri Jun 07, 2024 5:45 pm



Viewing all articles
Browse latest Browse all 2895

Trending Articles