Created
June 3, 2023 05:58
-
-
Save triacontane/d256ca8bd122554da475e0c44f1d52d8 to your computer and use it in GitHub Desktop.
IDを指定して再生中のアニメーションを消去
This file contains hidden or 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
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(); | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
プレイヤーに再生中のID28のアニメーションを消去