I want to make a variable v[1] changes after a turn in a battle, and picture shows depending on the value. So I made a plugin to achieve this.
I'm not very familiar with javascript and engine, so I use the showPicture in my script.
The code works now.
But then I referred to other plugins, I found that most authors do not use the "showPicture", instead they use "loadBitmap".
I wonder if the 2 methods are equally effective.
If not, which one is better and why?
I'm not very familiar with javascript and engine, so I use the showPicture in my script.
JavaScript:
UpdateIndicator = function () {
$gameScreen.erasePicture(1);
switch ($gameVariables.value(1)) {
case 0:
$gameScreen.showPicture(1, "SigA", 0, 0, 0,100, 100, 255, 0);
break;
case 1:
$gameScreen.showPicture(1, "SigB", 0, 0, 0,100, 100, 255, 0);
break;
case 2:
$gameScreen.showPicture(1, "SigC", 0, 0, 0,100, 100, 255, 0);
break;
case 3:
$gameScreen.showPicture(1, "SigD", 0, 0, 0,100, 100, 255, 0);
break;
}
};
The code works now.
But then I referred to other plugins, I found that most authors do not use the "showPicture", instead they use "loadBitmap".
I wonder if the 2 methods are equally effective.
If not, which one is better and why?