Enemy disappears when Transforming after a KO

● ARCHIVED · READ-ONLY
Started by Wavelength 5 posts View original ↗
  1. I am trying to create a scenario where random enemies spawn to replace those that have been KOed.  So I run an event each turn to check whether the enemy is KOed, and if so, transform them into a random enemy and use the Recover All command on them.

    However, in the case where the enemy transforms into a different enemy than the one that was previously there, the enemy is invisible (even though it can still act or be targetted like a normal battler).  Is there any kind of event command sequence or other trick I can use to prevent this from occuring?

    I have attached a screenshot of my event page setup.  Here's some more information that might help narrow it down:

    • I don't use the "Appear Halfway" command at all.
    • So far I have only tested this battle in "Battle Test" mode.
    • If the enemy is hit or takes an action they seem to show up.
    • If an enemy transforms into the same enemy that was previously there (e.g. a Rat transforms into a Rat), it displays normally without any problems.
    • When the enemy is invisible, so is the Animation that I have set to play on them.  The animation will still play (in the sense that I can hear the appropriate animation sound) but it will have no visuals.
    • Although I'm using scripts in my game, I have run into this before on a nearly clean VX Ace project - so I strongly believe it does not have to do with scripts.
    • This does not seem to happen in RPG Maker XP.
    Thank you for any help or advice you can offer!! :)

    Enemy Transform Bug.png
  2. I have tried out your troops eventing and everything is working as it should.

    The only problem there is that the enemy keeps respawning.
  3. Thanks for your reply, Susan!  I really appreciate you trying this out.  Encouraged by your results, I copied the troop into a totally clean project, deleted the event pages that weren't strictly necessary for the respawn, and tried it again.  But I see the same bug!

    Here are two pictures that show (1) what happens directly after an enemy transform-respawns (as you can see, the Bubble Larva enemy is clearly present in the troop, but invisible) and (2) what happens after the enemy makes a move (the enemy shows properly).

    Again, the bug only seems to occur when the enemy transforms into a different foe.  If, for example, a Bubble Larva transforms into a Bubble Larva, and respawns, it displays properly.

    If anyone can figure out why this is happening, or come up with a workaround that wouldn't affect gameplay, I'd be so happy.  This is really vexing me!

    Screenshot 1: "Plague Rat" has just transformed into "Bubble Larva" and respawned.  The enemy is invisible.

    Enemy Transform Bug 2.png

    Screenshot 2: Bubble Larva attacks, then shows up properly.

    Enemy Transform Bug 3.png
  4. If it's all the same to you, a workaround will be to add an additional command at the end of your troops event page : "Force Action"

    Example:

    Force Action: [1. Plague Rat], [Heal], Index 1

    This will refresh the battler image and allow it to show up in the battle screen.

    Hope this helps. ^^
  5. Thank you so much, Susan!! <3  That's a great idea.  I tried this out and immediately forcing the action (in my case, a self-targetted skill that simply says "X appears!" will, indeed, also force the enemy to appear properly!  I don't see any weird behavior resulting, and I'm so happy to finally have this working.

    Since this is a timed battle, forcing an extra action each time an enemy respawns is not quite an ideal solution - so if anyone can figure out how to truly fix this problem instead of just working around it, that would be awesome.  But the extra fraction of a second that it takes to run the skill isn't so bad, so I'll mark the topic solved for now.

    Thank you again :)   I really, really appreciate your help on this one.