Hello,
I apologize for all of the questions lately. I tried finding the answer to this on my own, but didn't have much luck.
I looked in the "RPG Maker MV Script Call List" () but couldn't really understand what I was looking at...
I just want to know how to use a "plugin command" in a script.
Earlier, ATT was kind enough to help me with a script to stop my screen from shaking when I get attacked:
Game_Actor.prototype.performDamage = function() {
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion('damage');
} /*else {
$gameScreen.startShake(5, 5, 10);
}*/
SoundManager.playActorDamage();
};
Then, I found the RMMV - Screen Shake plugin (https://theoallen.itch.io/rmmv-screenshake) from Theo that lets you shake the entire screen with the call, for example, Shake 10 45.
How can I use this "Shake 10 45" plugin command in the script that ATT gave me?
Currently, now when I get hit, thanks to ATT's script, the screen no longer shakes, but if I wanted it to shake, I would try something like this:
Game_Actor.prototype.performDamage = function() {
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion('damage');
} else {
ShakeScreen.pluginCommand(10, 45);
}
SoundManager.playActorDamage();
};
This results in a ReferenceError saying that "shakeScreen" is not defined.
So, how can I access the ShakeScreen script and call a command from it within another script?
Any help would be appreciated.
I apologize for all of the questions lately. I tried finding the answer to this on my own, but didn't have much luck.
I looked in the "RPG Maker MV Script Call List" () but couldn't really understand what I was looking at...
I just want to know how to use a "plugin command" in a script.
Earlier, ATT was kind enough to help me with a script to stop my screen from shaking when I get attacked:
Game_Actor.prototype.performDamage = function() {
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion('damage');
} /*else {
$gameScreen.startShake(5, 5, 10);
}*/
SoundManager.playActorDamage();
};
Then, I found the RMMV - Screen Shake plugin (https://theoallen.itch.io/rmmv-screenshake) from Theo that lets you shake the entire screen with the call, for example, Shake 10 45.
How can I use this "Shake 10 45" plugin command in the script that ATT gave me?
Currently, now when I get hit, thanks to ATT's script, the screen no longer shakes, but if I wanted it to shake, I would try something like this:
Game_Actor.prototype.performDamage = function() {
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion('damage');
} else {
ShakeScreen.pluginCommand(10, 45);
}
SoundManager.playActorDamage();
};
This results in a ReferenceError saying that "shakeScreen" is not defined.
So, how can I access the ShakeScreen script and call a command from it within another script?
Any help would be appreciated.