Every 1 second a box is created and when the dog collides with the box, it is destroyed.
But this does not work because the box is inside a group of box objects.
Can you help me?
Every 1 second a box is created and when the dog collides with the box, it is destroyed.
But this does not work because the box is inside a group of box objects.
Can you help me?
Use a collision callback. Sprites are in its arguments.