Shake Screen during Battle

Panier

Warper
Member
Joined
Aug 26, 2018
Messages
2
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hello, I'm working on an RPG, and there is a scene where the battlers are facings ennemies on a Train. Then, for more immersion, I would like to know if it's possible to shake the screen during ALL the battle. With the Battle Event, I only can shake the screen during 999 frames each turn, so some times the screen becomes fixed again.
Thank you a lot !
 

Anarcho-paladin

Veteran
Veteran
Joined
Feb 24, 2014
Messages
115
Reaction score
13
First Language
French
Primarily Uses
Maybe create a condition for the shaking event that reproduces it when it's over?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
That is actually an interesting question. I think the solution should come with a plugin command though (not sure if it exists or will be made as an answer) but this question is really really good.
I think it is impossible to do it using eventing, but if it is about to be done that way, you should do the following steps:

Create a Switch named Shake ON and set if to OFF
Create a Common Event called Shaking Screen
Set its Trigger to Parallel
Set its Switch to ShakeON

Create the Train Troops.
Name it TrainBattle
Now on TrainBattle Troops, you should set ShakeON to ON.
Don't forget to set it off when battle ends or else you got a constant earthquake. (Giving you ideas)

I think you don't have to call the Common Event. It triggers when the ShakeON is set to ON.
Now in the event you should make a loop, that will repeat the earthquake with a Wait(6) command in the loop for performance reasons.
I think that's it.

I haven't tested it though. Give it a try.
Optimal though, we could have a plugin command to do that.
 
Last edited:

Panier

Warper
Member
Joined
Aug 26, 2018
Messages
2
Reaction score
1
First Language
French
Primarily Uses
RMMV
Thank you for your quick answer !
I tried this way, but the screen is not shaking during the battle. And when I dont set the switch to OFF after the battle, there is actualy the constant Earthquake, proving the Event has been triggered, but simply doesn't work during the battle :/
I may not have done well, maybe someone who tried can confirm if it works or nope ? ^^
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
I try to make it work properly, but it does not.
I managed to make the event run and call the common event in battle.
The Common Event has been set to Parallel, it is a loop calling the same shake and it actually works but it won't let the battle go on, as like it was an AutoRun.
I am not sure what is going on here, but it would be interesting to hear from others.
This probably needs a plugin to work so...

I move it




Edit: Look what I found. I wonder if this can help you out (first post, last command)...

Script Call Equivalent of Events
 
Last edited:

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,081
Members
137,582
Latest member
Spartacraft
Top