Created
January 28, 2016 12:56
-
-
Save triacontane/1da6c4e5725819c9c15f to your computer and use it in GitHub Desktop.
再生中のアニメーションを削除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eventId = 1; | |
SceneManager._scene._spriteset._characterSprites.forEach(function(sprite) { | |
if (sprite._character instanceof Game_Event && sprite._character.eventId() === eventId) { | |
sprite._animationSprites.forEach(function(animation) { | |
animation.remove(); | |
}); | |
} | |
}); | |
SceneManager._scene._spriteset._characterSprites.forEach(function(sprite) { | |
if (sprite._character instanceof Game_Player) { | |
sprite._animationSprites.forEach(function(animation) { | |
animation.remove(); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment