Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Actor Stepping Animation
- // by Shaz
- // Last Updated: 2015.10.30
- //
- // Revisions:
- // 2015.10.30 Fixed TypeError: Cannot read property 'actor' of undefined.
- //=============================================================================
- /*:
- * @plugindesc Allows party leader/followers to have stepping anim on map
- * @author Shaz
- *
- * @help This plugin does not provide plugin commands.
- *
- * Add <stepanim> to the note box of an Actor to turn on stepping animation
- * for the actor's sprite on the map, as the party leader or a follower.
- *
- */
- (function() {
- var _Game_Player_update = Game_Player.prototype.update;
- Game_Player.prototype.update = function(sceneActive) {
- _Game_Player_update.call(this, sceneActive);
- if ($gameParty.leader()) {
- this.setStepAnime($gameParty.leader().actor().meta.stepanim || false);
- }
- };
- var _Game_Follower_update = Game_Follower.prototype.update;
- Game_Follower.prototype.update = function() {
- _Game_Follower_update.call(this);
- if (this.actor()) {
- this.setStepAnime(this.actor().actor().meta.stepanim || false);
- }
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement