_process to"false" to trigger an explosion(AnimatedSprite) at the position where a bullet(Area2d) enters an enemy(Rigidbody), the explosion animation doesn't take place at the collision point ,
but way beyond. However,the bullet sprite visibility is set to false ,as soon as the collision is detected.
The explosion sprite
inherits its position from the bullet.How to stop _process from triggering once collision has taken place?
# if is_processing(): # still _process triggers after collision
# position += velocity * delta
position += velocity * delta
explosion.position = self.position
explosion.visible = true
explosion.playing = true
bulletsprite.visible = false