How to score when colide

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kronopy

I have a rigid body (the player) that collides with a bunch of kinematic2dbodies, can someone give me some script on how to make the score go up each time the player collides with a kinematic body? Thank you.