Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created January 28, 2016 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triacontane/1da6c4e5725819c9c15f to your computer and use it in GitHub Desktop.
Save triacontane/1da6c4e5725819c9c15f to your computer and use it in GitHub Desktop.
再生中のアニメーションを削除
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