* Plugin Command:
* LoopAnim start event animid # Start a looping animation on an event
* LoopAnim stop event # Stop animation loop
*
* event = number for specific event
* event = 0 for "this" event
* event = -1 for player
* event = $gameVariables.value(x) to get the event id from variable x
//=============================================================================
// Looping Animations
// by Shaz
// Last Updated: 2015.09.21
//=============================================================================
/*:
* @plugindesc Allows animations on the map to loop
* @author Shaz
*
* @help
*
* Plugin Command:
* LoopAnim start event animid # Start a looping animation on an event
* LoopAnim stop event # Stop animation loop
*
* event = number for specific event
* event = 0 for "this" event
* event = -1 for player
* event = $gameVariables.value(x) to get the event id from variable x
*/
if (command.toUpperCase() === 'LOOPANIM') {
var character = this.character(eval(args[1]));
if (character) {
switch (args[0].toUpperCase()) {
case 'START':
character.loopAnimStart(args[2]);
break;
case 'STOP':
character.loopAnimStop();
}
}
}
}