I would like to know how you can temporarily hide the sprite of the enemy when he uses a special skill.
In my game, there are static sprites and sprites for animations (like in the darkest dungeon, static pictures moving smoothly on the screen). So I need during special attacks of the enemy to remove his sprite and in its place to reproduce a set of other pictures and for this, I will use yanfly action sequence, in which I'll start a common event, but there are 2 problems:
1) I don't know how to hide the sprite itself during this event. I found a command: $gameTroop.members()[1].hide();
But by itself, it doesn't work when I use it in combat. I've tried changing the values in brackets, but no luck as I don't know exactly how this script is supposed to work. So I need to know how to hide an enemy's sprite temporarily.
2) I'm wondering if there's any way to play an event without using a "common event" Because I'm going to make one big common event and while a certain character/opponent attacks, turn on a switch like "wolf jump" and then turn on a common event that will find the right set of pictures and show it, then turn the switch off again. Because of this, I would get a bulky common event and a lot of unnecessary switches, so I was wondering if there was another way to play the animation with the yanfly action sequence rather than through a common event.
Note: by "animations" here I mean a set of show/move picture commands, not the ingame animations.
In my game, there are static sprites and sprites for animations (like in the darkest dungeon, static pictures moving smoothly on the screen). So I need during special attacks of the enemy to remove his sprite and in its place to reproduce a set of other pictures and for this, I will use yanfly action sequence, in which I'll start a common event, but there are 2 problems:
1) I don't know how to hide the sprite itself during this event. I found a command: $gameTroop.members()[1].hide();
But by itself, it doesn't work when I use it in combat. I've tried changing the values in brackets, but no luck as I don't know exactly how this script is supposed to work. So I need to know how to hide an enemy's sprite temporarily.
2) I'm wondering if there's any way to play an event without using a "common event" Because I'm going to make one big common event and while a certain character/opponent attacks, turn on a switch like "wolf jump" and then turn on a common event that will find the right set of pictures and show it, then turn the switch off again. Because of this, I would get a bulky common event and a lot of unnecessary switches, so I was wondering if there was another way to play the animation with the yanfly action sequence rather than through a common event.
Note: by "animations" here I mean a set of show/move picture commands, not the ingame animations.