一部のSRCrazyプラグインに必要なプラグイン – SRCrazy_Tween.js

タイトル
Required for some SRCrazy plugins
作者名
ヘルプ
============================================================================
S_Rank_Crazy's Tweening Plugin
============================================================================
This plugin provides tweening functionality for other plugins.

This plugin should be placed above most other SRCrazy plugins in the Plugin
Manager. If you're using the MVCommons or PluginManagement plugins then
any dependency issues will be output as errors when the game loads.

All SRCrazy plugins are rename safe - you can rename the file and it'll still
work. All parameters and commands are case-safe (no need to worry about
case-sensitive input) unless specifically stated. This doesn't include
Comment Tags or file names/paths; they are still case sensitive.

MVCommons supported but not required for use.

============================================================================
USAGE

This plugin provides a Tween class used to animate/tween values of an
object from their current value to a target value over time. The class is
found in the SRCrazy global namespace at:

SRCrazy.Classes.Tween

There are two ways to use this class:
1) Manage your own instances.
2) Fire-and-forget.

1) Managed Instances

To use the class you'll need to first create a new Tween instance, add
the desired properties [to be tweened] and manage its state through
playback/update methods:

var targetObject = { x: 0, y: 0 };
var tween = new SRCrazy.Classes.Tween(targetObject, 5);
tween.addProperty("x", targetObject.x, 120);
tween.onCompleteCallback = function() {
console.log("My tween completed");
};

setInterval(1000, function() {
tween.update();
});

In the above example, we create a tween to animate the value of property
`x` of `targetObject` from 0 to 120, over a duration of 5 seconds. We then
call the tween's `update` method on a 1000 millisecond (1 second) interval.


2) Fire-and-Forget

This is a shorthand for the above and uses the SRCrazy_Timer plugin to update
tweens over the Timer's framerate interval:

var targetObject = { x: 0, y: 0 };
var SRCrazy.Classes.Tween.to(targetObject, 5, { x: 120 });
tween.onCompleteCallback = function() {
console.log("My tween completed");
};

============================================================================
TERMS OF USE

Free for commercial and non-commercial use. No credit need be given, but
always appreciated.

============================================================================
COMPATIBILITY

Requires SRCrazy_Core plugin. Additionally requires SRCrazy_Timer for
self-managed usage.

============================================================================
パラメータ
( なし )
ライセンス表記
No personal credit required, but always appreciated.
Free for personal and commercial use.

紹介ページ https://github.com/agent-bizzle/rmmv-plugins/blob/master/src/SRCrazy_Tween.js