Hello!
I am working on a script to show a random image within a set of images everytime I go in a specific map.
The problem I have is that the script shows both the images I currently setup, instead of just one at a time.
I'm new to all of these, so maybe someone can check what I'm doing wrong?
Currently, I only have two pictures that is setup. But I don't think that should matter right?
I am working on a script to show a random image within a set of images everytime I go in a specific map.
The problem I have is that the script shows both the images I currently setup, instead of just one at a time.
I'm new to all of these, so maybe someone can check what I'm doing wrong?
Code:
let IMGIds=[2, 4,];
let IMGNames=["Pose1[5x15]", "Pose2[5x15]"];
let ranPick=[Math.randomInt(IMGIds.length)];
$gameScreen.showPicture(IMGIds[ranPick], IMGNames[ranPick], 1, 960, 580, 100, 100, 255, 0);
Currently, I only have two pictures that is setup. But I don't think that should matter right?