普段は触れたら、ダメージにしているところを変数を使って触れているかどうかの判定をしてみました。
変数でゲーム状態をコントロールするときはプログラム前の設計がとても重要になります。
Usually, a sprite takes damage as sonn as it touches another sprite.In this implementation, I used a variable to determine whether a collision is occurring.When controlling game states using variables, carefurl planning and design before programming are essential.
次回

