Got the software 4 days ago and have been working on a game for the majority of the time.
I'm using DLC sprites as battlers (Jet's SideView System), but I've noticed that when an actor dies, their sprite just goes inanimate in battle and can still be visually seen but cannot be selected to do an action. The DLC sprites don't have a dead or collapsed sprite, so is there a way for me to make it so that when someone dies they just flash and disappear from battle?
Thanks.
How to make actor flash and disappear when dead?
● ARCHIVED · READ-ONLY
-
-
Check to see if they have a Collapse effect set to them in the database; either under the character themself or their class. Maybe it's set so they don't disappear. You could also try setting that to Instant and see if that works.
I haven't used that battle system before but it could be that it's looking for a dead sprite but instead defaults to the basic one without animation. Maybe there's a setting to disable it or redirect it to a blank sprite. -
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
By default, the actor disappears. If they're not, it must be something in the sideview system you're using. So please:
1 - take a look at the script and read the instructions. See if it mentions any special tags or sprites that are required for dead actors
2 - post a link to the script so we can see what you're working with. This is ALWAYS required when you need help with scripts you've added to your game. -
Sorry about the wrong section, here's the script
http://forums.rpgmakerweb.com/index.php?/topic/3358-viewed-battle-system/
*Sorry about that, (again :x), thanks Andar.
I'm assuming that it's this that needs to change
# These are state-based sprite changes. If the actor has one of these states
# then the game will search for a sprite of the character's regular sprite
# name with the special state tag appended to it. So if Jimmy's sprite
# name was $Jimmy, and he had poison inflcted on him, and poison's id was
# listed here as ["_poison", 0], it would change Jimmy's in-battle sprite
# to $Jimmy_poison at the first sprite index.
STATE_SPRITES = {
1 => ["", 0],
2 => ["", 0]
}
But instead of making collapsed states of the sprites, can I replace it with something else to just make them flash and disappear like a regular enemy does? -
RedRamen, Shaz asked you to provide a link to the script - not to post the script here.
There are a lot of reasons for that, including the ability to check if there are bugfixes on the original pages, if there are additional manuals there - and that some scripters do not want their scripts posted anywhere else but their own website.
The section you pointed at does allow you to set a "dead"-sprite, but you have to make that sprite, give it an name as described in that section and change the line with the state number 1 to the name appendix you used (don't forget to place the new sprite into the project).
That section does not allow for a flash-effect, but you can make all collapsed pictures for sprites as fully empty/transparent pictures. You will still need those files for each actor however. -
Ok, thanks, I'll go with the transparent idea.