I made a camouflage skill for one of my enemies, which changes its opacity with a state. Then in its attack action sequences, I change the opacity with a plugin command back to 255 at the moment of the attack, and then back to smaller after the attack, if the enemy is state affected with the camouflage state.
The problem is that usually when the enemy is making their first attack after using the camouflage skill, the opacity doesn't temporarily go back to 255. Then when it makes the next attacks, the opacity does go to 255. However, this does not always happen, like sometimes if the enemy uses the camouflage skill again, the opacity goes to 255 even during the first attack made during it. But most of the times it doesn't.
Am I missing something, or is there some kind of glitch here? Pics below...I guess this isn't the biggest problem in the world, but would be nice to fix it.
EDIT: I fixed a couple of spots where I had written "go down", when I meant go to 255.
The problem is that usually when the enemy is making their first attack after using the camouflage skill, the opacity doesn't temporarily go back to 255. Then when it makes the next attacks, the opacity does go to 255. However, this does not always happen, like sometimes if the enemy uses the camouflage skill again, the opacity goes to 255 even during the first attack made during it. But most of the times it doesn't.
Am I missing something, or is there some kind of glitch here? Pics below...I guess this isn't the biggest problem in the world, but would be nice to fix it.
EDIT: I fixed a couple of spots where I had written "go down", when I meant go to 255.