- Joined
- Oct 15, 2018
- Messages
- 498
- Reaction score
- 342
- First Language
- English
- Primarily Uses
- RMMV
EDIT: Thread was - Is it possible to test for a positive loadPicture() first?"
Now it's something a bit different; see third post
================================
For instance, take the statement:
var img = ImageManager.loadPicture('blah');
In MV, if the game tries to load a picture that does not exist, the error will appear onscreen (with a retry button).
Is it possible to create an IF statement where it first checks if an image exists, then if it exists, it loads, and if it doesn't exist, the game does something else?
Apologies if this is something quite basic; I'm not much of a scripter.
Now it's something a bit different; see third post
================================
For instance, take the statement:
var img = ImageManager.loadPicture('blah');
In MV, if the game tries to load a picture that does not exist, the error will appear onscreen (with a retry button).
Is it possible to create an IF statement where it first checks if an image exists, then if it exists, it loads, and if it doesn't exist, the game does something else?
Apologies if this is something quite basic; I'm not much of a scripter.
Last edited: