[SOLVED] Common Events: Battle Cut-In Help

Status
Not open for further replies.

Esjitu

Villager
Member
Joined
Mar 26, 2013
Messages
22
Reaction score
13
First Language
English
Primarily Uses
RMMV
I'm trying to make battle cut-ins that show a picture of the character moving across the screen when certain skills are used.

Now, I managed to get the animation set up the way I want it already. I set up an event to activate it for testing purposes and it's working perfectly.

https://i.gyazo.com/e5055e8f983a2ad5d7c2d45015b4d629.mp4

What I've done is set up two events:

1) The first event that's being activated shows the image of the character with Show Picture, and then Move Picture to get him to move across the screen. This event also flips a switch called 'Battle Cut-In', and flips it back off after Move Picture is done playing the animation.

2) The second event is Parallel Process set to run when the above Battle Cut-In switch is ON. If it's on, it runs a loop that just has Show Picture set to show the 5 frames of animated speedlines with a small wait between each. This loop will run for as long as the Battle Cut-In Switch is on...and since that flips back off when the first event's animation finishes, it gives the illusion that both pictures are part of the same animation.

So far, so good, I thought. I figured that copying these events to common events would allow them to behave the same way, but be able to call the animation up in battle when [x] skill is used. So I set the two events up as common events, with the first event's trigger set to 'none' and the second one set to parallel process when the Battle Cut-In switch is on. Then I set the first switch to be called when using a skill, and figured I'd end up with the same result.

It DOES play the first event's animation...but not the second one. Like it doesn't recognize that the switch is being flipped on when the event triggers in battle, or something. I tried a few other things to get them to work, like having the first event call the second directly, but that just caused it to trigger the second event's loop infinitely because it didn't run the rest of the event where the switch would shut off and kill the loop. I also tried having the skill trigger BOTH common events but this had similarly failed results.

Is it not possible to use this trick with common events? Or is there something I have to do differently to get it working in battle? Worth noting I'm using Tsukihime's Pre-Skill Effects script to get the animation to play before the attack, but I have the same problems even without the script in use so it's not that. Also using Yanfly's battle engine and the Press-Turn system, if that matters at all.

Is there no way that I can get both animations to trigger at the same time? I know I could just create the whole animation on one layer in Photoshop instead of using Move Picture, but then I'd have 20+ frames in my Pictures folder instead of just 6 (5 frames for the speedline animation, and one still image for the character), so I'd really rather avoid this if possible.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Common events set to parallel process with a switch as a trigger do not run during battles - only on the map - unless you have a script that makes them.
 

Esjitu

Villager
Member
Joined
Mar 26, 2013
Messages
22
Reaction score
13
First Language
English
Primarily Uses
RMMV
I thought it might be something like that. Can you recommend any scripts that might be able to do it?

Edit: Tsukihime's Global Common Events seems to work like a charm! The event now triggers the second event, runs the animation, then turns itself back off.

I've marked the thread as solved. Maybe this topic can help anyone else trying to create battle cut-ins.
 
Last edited:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top