How to take one of the objects after a collision between them?

Hello, I’m trying to figure out a collision between two sprites.
Example: I have two players who move and shoot with bullets. And if there is a contact between a bullet and some of the players, I want to remove the bullet from the scene and the player to stay?

Cpp-tests has to exactly what you need

1 Like