I want to make multiple pictures fade out (from opacity 255 to 0) simultaneously.
This is the code I'm currently using:
What happens is all pics just disappear instantaneously, they don't fade. At least the right pictures are disappearing, but the 160 wait I put is not being used. I set the opacity to 55 for testing too, but they just disappear.
What am I doing wrong? Is there any other way to do it?
This is the code I'm currently using:
Code:
for (i = 1; i <= 6; i++) {
if (acbat[i] > 0 && CharDB[acbat[i]].HP.now <= 0) {
//Below I store values x and y of pictures in arrays
var temppicx = { };
var temppicy = { };
for (j = 0; j < 35; j++) {
if (!!($gameScreen.picture(batpic[i]+j))) temppicx[j] = $gameScreen.picture(batpic[i]+j).x();
if (!!($gameScreen.picture(batpic[i]+j))) temppicy[j] = $gameScreen.picture(batpic[i]+j).y();
};
// Below I use those values to make pics fade
for (k = batpic[i]; k < batpic[i] + 36; k++) $gameScreen.movePicture(k, 0, temppicx[k], temppicy[k], 100, 100, 55, 0, 160);
};
};
What happens is all pics just disappear instantaneously, they don't fade. At least the right pictures are disappearing, but the 160 wait I put is not being used. I set the opacity to 55 for testing too, but they just disappear.
What am I doing wrong? Is there any other way to do it?