How to change event textures prior to battle exit animation?

kibcob

Villager
Member
Joined
Oct 6, 2016
Messages
13
Reaction score
2
First Language
English
Primarily Uses
Okay, so I want to make the player change his sprite to a damaged version of his original sprite when he loses a battle, however the Change Actor Graphic command for a cutscene event only occurs after the battle exit animation is finished. Is there any way I can make the sprite be damaged before the animation even plays? Thanks for any help. :)
 

Corlagon

Veteran
Veteran
Joined
Mar 13, 2012
Messages
65
Reaction score
39
First Language
German
Primarily Uses
RMXP
Put this mini-script into your Event:

Code:
Graphics.freeze

(RPGXP had this as a pre-made command, "Prepare for Transition", but VXA no longer includes it for some reason.)


Put that mini-script before the battle, and change your graphics between them – the player won't see the changes until they return from the battle.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,048
Reaction score
7,974
First Language
German
Primarily Uses
RMMV
@kibcob since the default battlesystem has no sprite for the actor on the battlescreen, any asking for changing such a sprite before battleexit means that you're using a script to add that feature.


And that means we need to know which script you're using to create those sprites befor we can tell you how to proceed, because any guessed command (including the one posted above) might not work on that script.


In a case like yours, the best suggestion is probably to either look for tsukihime's script for additional troop event condition (including conditions that will be triggered before battleend), or use a temporary immortal state on the actor that checks the HP and changes the sprite before removing itself on HP=0 to allow death.


@Corlagon several wait/prepare commands from earlier makers have been removed because it was proven that they cause instability in games if used wrong.
 

Latest Threads

Latest Profile Posts


I've started working on rpg maker again, and I can see a lot of improvement from when I was 13. I still have a long way to go, but I'm proud that I've gotten this far.
Animated Title screen is by SharkerrBlue(SB)
I am using the Nightmare Land pack.
I just can't walk to the store for lunch without walking past people smoking. It not only smells bad, it's probably poisoning me. I'm afraid I'll eventually have to be hospitalized. I can't take another path because there's too much traffic and drivers in the plaza are reckless sometimes. I almost got run over once, even after looking both ways.
RyanYe wrote on whtdragon's profile.
Your art works about Wyrvens and Dragons are sooooooooo cooooooooool~! I like them so bad
Can you create more? like Archangels, Devils, Titans, Cyclops!!
My valentine cutscene is now available on itch.io and you can get the "source code" as well, feel free to check it out!

The game page on itch can be found at:
A self-aware gamer, playing my game on video, and being honest about his feelings: :kaojoy:


It gets funny, there's heart, and his laptop is on fire as he plays. :kaoswt2:

Forum statistics

Threads
108,795
Messages
1,039,546
Members
141,245
Latest member
feedtalefour
Top