Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created June 3, 2023 05:58
Show Gist options
  • Save triacontane/d256ca8bd122554da475e0c44f1d52d8 to your computer and use it in GitHub Desktop.
Save triacontane/d256ca8bd122554da475e0c44f1d52d8 to your computer and use it in GitHub Desktop.
IDを指定して再生中のアニメーションを消去
SceneManager._scene._spriteset._characterSprites.forEach(function(sprite) {
if (sprite._character instanceof Game_Player) {
sprite._animationSprites.forEach(function(animation) {
if (animation._animation.id === 28) {
animation.remove();
}
});
}
});
@triacontane
Copy link
Author

プレイヤーに再生中のID28のアニメーションを消去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment