攻撃をヒットさせるときは、当たり判定となるスプライトを出すようにすると、ゲームのコントロールが簡単になります。
スプライトに触れたときという条件と、当たり判定となるスプライトがどれだけ画面に残るか?を調整すると自分のゲームに合わせることができますね。
By spawning a sprite that serves as a hitbox when an attack connects, game control bevomes much simpler.
You can customize the behavior to fit your game by adjusting the collision condition ( when the player touches the sprite) and how long the hitbox sprite remains on the screen.
次回

