imaninja1991
New member
Okay, I have a character, Bishamon and I used a blink.c script so when he is hit he changes his palette to his alternative palette.
#include "data/scripts2/script.c"
void main()
{// Blink effect script
void self = getlocalvar("self"); //Get calling entity.
int Health = getentityproperty(self,"health");
if (Health > 0){
changeentityproperty(self, "colourmap", 1);
changeentityproperty(self, "maptime", 14 + openborvariant
("elapsed_time"));
}
}
It worked just fine, then I created a similar 2nd enemy type with the same character but different moves, I gave him a different palette so that player could distinguish between the 2. That's when thinks started not working. The blink.c script would not work for the original bishamon enemy. However what was strange was for the "2nd New Bishamon" Enemy, instead of changing to it's blink palette, it changed to Bishamon 1's palette.
In other words there are 3 palletes. Red is the original color of Bishamon, White is the blink pallete, blue is the new Bishamon Palette, however both have their alternative pal set to the white blink palette. The 2nd enemy has his "original palette" set to blue depsite the sprites being originally red. When 2nd Bishamon is hit his palette turns to red?? However that palette is not declared, and when original Bishamon is hit he will not change maps, I even tried setting the white map as his 2nd and 1st map and set map in levels, this character will still not change maps. I even moved blue map out of Bishamons folder, still didn't work. Does anyone have any solutions.
#include "data/scripts2/script.c"
void main()
{// Blink effect script
void self = getlocalvar("self"); //Get calling entity.
int Health = getentityproperty(self,"health");
if (Health > 0){
changeentityproperty(self, "colourmap", 1);
changeentityproperty(self, "maptime", 14 + openborvariant
("elapsed_time"));
}
}
It worked just fine, then I created a similar 2nd enemy type with the same character but different moves, I gave him a different palette so that player could distinguish between the 2. That's when thinks started not working. The blink.c script would not work for the original bishamon enemy. However what was strange was for the "2nd New Bishamon" Enemy, instead of changing to it's blink palette, it changed to Bishamon 1's palette.
In other words there are 3 palletes. Red is the original color of Bishamon, White is the blink pallete, blue is the new Bishamon Palette, however both have their alternative pal set to the white blink palette. The 2nd enemy has his "original palette" set to blue depsite the sprites being originally red. When 2nd Bishamon is hit his palette turns to red?? However that palette is not declared, and when original Bishamon is hit he will not change maps, I even tried setting the white map as his 2nd and 1st map and set map in levels, this character will still not change maps. I even moved blue map out of Bishamons folder, still didn't work. Does anyone have any solutions.