Created
December 14, 2019 09:46
-
-
Save triacontane/4d604d6480037cff9e756e3b8a3586de 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 _Sprite_StateIcon_updateTransform = Sprite_StateIcon.prototype.updateTransform; | |
Sprite_StateIcon.prototype.updateTransform = function updateTransform() { | |
_Sprite_StateIcon_updateTransform.apply(this, arguments); | |
this.worldAlpha = this.alpha; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ステートアイコンの透明度は、親である敵キャラの透明度の影響を受けます。
上記のコードによりその影響を受けなくなります。