Difference between revisions of "Battle Animation Speed Options (YEP)"

From Yanfly.moe Wiki
Jump to navigation Jump to search
(Created page with "{{MvPlugin |preview = <youtube>https://www.youtube.com/watch?v=xP90YHIiAYM</youtube> |link1 = <html><iframe src="https://itch.io/embed/399557" height="167" width="552" framebo...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{MvPlugin
 
{{MvPlugin
|preview = <youtube>https://www.youtube.com/watch?v=xP90YHIiAYM</youtube>
+
|preview = <youtube>https://www.youtube.com/watch?v=xP90YHIiAYM</youtube>
|link1 = <html><iframe src="https://itch.io/embed/399557" height="167" width="552" frameborder="0"></iframe></html>
+
|link2 = <html><iframe src="https://itch.io/embed/508096" height="167" width="552" frameborder="0"></iframe></html>
|link2 = [http://yanfly.moe/plugins/en/YEP_BattleAniSpeedOpt.js Mirror]
+
|link3 = <html><iframe src="https://itch.io/embed/398158" height="167" width="552" frameborder="0"></iframe></html>
  
 
}}
 
}}
Line 9: Line 9:
 
{{Yanfly Engine Plugins}}
 
{{Yanfly Engine Plugins}}
  
== Help File ==
+
{{RequiredPluginsMV}}
 +
* [[Battle Engine Core (YEP)|Battle Engine Core]]
 +
* [[Action Sequence Pack 1 (YEP)|Action Sequence Pack 1]]
 +
* [[Action Sequence Pack 2 (YEP)|Action Sequence Pack 2]]
 +
* [[Action Sequence Pack 3 (YEP)|Action Sequence Pack 3]]
 +
 
 +
== Introduction ==
  
 
  <nowiki>
 
  <nowiki>
============================================================================
 
Introduction
 
============================================================================
 
 
 
Player comfort is a major thing to pay attention to when it comes to
 
Player comfort is a major thing to pay attention to when it comes to
 
designing video games nowadays. RPG's are no exception either. And inside of
 
designing video games nowadays. RPG's are no exception either. And inside of
Line 27: Line 29:
 
setting, which plays one animation frame per one real frame, the player now
 
setting, which plays one animation frame per one real frame, the player now
 
has the option to choose how quickly things progress in battle.
 
has the option to choose how quickly things progress in battle.
 +
</nowiki>
  
============================================================================
+
== Compatibility ==
Compatibility
 
============================================================================
 
  
 +
<nowiki>
 
This plugin is made compatible with the following plugins:
 
This plugin is made compatible with the following plugins:
 
- YEP_BattleEngineCore
 
- YEP_BattleEngineCore
Line 42: Line 44:
 
ensure the action sequences are working properly with the battle animation
 
ensure the action sequences are working properly with the battle animation
 
speed options.
 
speed options.
 +
</nowiki>
  
============================================================================
+
{{Options Core Integration MV}}
Options Core Settings - Adding the New Options
 
============================================================================
 
  
 +
<nowiki>
 
If you are using YEP_OptionsCore.js, you can add a new Option using this
 
If you are using YEP_OptionsCore.js, you can add a new Option using this
 
plugin. Here's the following code/parameter settings you can use with it.
 
plugin. Here's the following code/parameter settings you can use with it.
Line 135: Line 137:
 
Load Config Code:
 
Load Config Code:
 
// Empty. Provided by this plugin.
 
// Empty. Provided by this plugin.
 +
</nowiki>
  
============================================================================
+
== Changelog ==
Changelog
+
 
============================================================================
+
<nowiki>
 +
Version 1.02:
 +
- Updated Float and Jump compatibility to allow for negative values.
  
 
Version 1.01:
 
Version 1.01:
Line 146: Line 151:
 
- Finished Plugin!
 
- Finished Plugin!
  
============================================================================
 
End of Helpfile
 
============================================================================
 
 
</nowiki>
 
</nowiki>
 +
 +
<!-- This is a comment, remove the arrows surrounding this for the categories you want to show -->
 +
<!-- [[Category: RPG Maker MV Core Plugins]] -->
 +
[[Category: RPG Maker MV Battle Plugins]]
 +
<!-- [[Category: RPG Maker MV Item Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Skill Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Equip Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Status Menu Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Gameplay Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Movement Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Quest Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Options Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Eventing Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Utility Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Mechanical Plugins]] -->
 +
[[Category: RPG Maker MV Visual Plugins]]
 +
[[Category: RPG Maker MV Menu Plugins]]
 +
<!-- [[Category: RPG Maker MV Message Plugins]] -->
 +
[[Category: RPG Maker MV Quality of Life Plugins]]
 +
<!-- [[Category: RPG Maker MV Plugin Tips & Tricks]] -->
 +
<!-- [[Category: Action Sequences (MV)]] -->
 +
<!-- [[Category: Comment Tags (MV)]] -->
 +
<!-- [[Category: Main Menu Manager Integration (MV)]] -->
 +
<!-- [[Category: Notetags (MV)]] -->
 +
<!-- [[Category: Options Core Integration (MV)]] -->
 +
<!-- [[Category: Plugin Commands (MV)]] -->
 +
<!-- [[Category: Script Calls (MV)]] -->
 +
<!-- [[Category: Text Codes (MV)]] -->

Latest revision as of 11:02, 13 June 2020

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.



Download

System

This is a plugin created for RPG Maker MV.

For help on how to install plugins, click here.

For help on how to update plugins, click here.

Got errors with your RPG Maker MV plugin? Click here.

Yanfly Engine Plugins

This plugin is a part of the Yanfly Engine Plugins library.

Required Plugins

The following plugins are required in order to use this plugin.

Place the following plugins above this plugin located in the Plugin Manager.

Introduction

Player comfort is a major thing to pay attention to when it comes to
designing video games nowadays. RPG's are no exception either. And inside of
RPG's, the player is usually within a battle a large portion of the time.
And for this large portion of the time, players are often waiting for battle
animations to finish playing.

This plugin adds in the ability for players to choose how fast they want
battle animations to play from inside the options menu. From the default
speed, which plays one animation frame per four real frames, to the fastest
setting, which plays one animation frame per one real frame, the player now
has the option to choose how quickly things progress in battle.

Compatibility

This plugin is made compatible with the following plugins:
- YEP_BattleEngineCore
- YEP_X_ActSeqPack1
- YEP_X_ActSeqPack2
- YEP_X_ActSeqPack3

If you are using the listed plugins, place this plugin underneath the listed
plugins in the Plugin Manager list for maximum compatibility. This is to
ensure the action sequences are working properly with the battle animation
speed options.

Options Core Integration

To integrate options from this plugin into Yanfly's Options Core, use the settings below:

If you are using YEP_OptionsCore.js, you can add a new Option using this
plugin. Here's the following code/parameter settings you can use with it.

---------
Settings:
---------

Name:
\i[302]Battle Animation Speed

Help Description:
Changes the speed of battle animations.

Symbol:
battleAniSpeed

Show/Hide:
show = Imported.YEP_BattleAniSpeedOpt;

Enable:
enabled = true;

Ext:
ext = 0;

----------
Functions:
----------

Make Option Code:
this.addCommand(name, symbol, enabled, ext);

Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var quarterWidth = statusWidth / 4;
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changePaintOpacity(value === 4);
var text = this.battleAnimationSpeedText(4);
this.drawText(text, titleWidth + quarterWidth * 0, rect.y, quarterWidth, 'center');
this.changePaintOpacity(value === 3);
var text = this.battleAnimationSpeedText(3);
this.drawText(text, titleWidth + quarterWidth * 1, rect.y, quarterWidth, 'center');
this.changePaintOpacity(value === 2);
var text = this.battleAnimationSpeedText(2);
this.drawText(text, titleWidth + quarterWidth * 2, rect.y, quarterWidth, 'center');
this.changePaintOpacity(value === 1);
var text = this.battleAnimationSpeedText(1);
this.drawText(text, titleWidth + quarterWidth * 3, rect.y, quarterWidth, 'center');

Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value -= 1;
if (value <= 0) value = 4;
value = value.clamp(1, 4);
this.changeValue(symbol, value);

Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value -= 1;
value = value.clamp(1, 4);
this.changeValue(symbol, value);

Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value += 1;
value = value.clamp(1, 4);
this.changeValue(symbol, value);

Default Config Code:
// Empty. Provided by this plugin.

Save Config Code:
// Empty. Provided by this plugin.

Load Config Code:
// Empty. Provided by this plugin.

Changelog

Version 1.02:
- Updated Float and Jump compatibility to allow for negative values.

Version 1.01:
- Compatibility update with YEP_OptionsCore.js.

Version 1.00:
- Finished Plugin!