play icon indicating copy to clipboard operation
play copied to clipboard

How to detect a sprite touching with other?

Open Razboinicul opened this issue 3 years ago • 1 comments

Razboinicul avatar Jun 07 '22 13:06 Razboinicul

You can use the .is_touching() method defined on sprites

if car.is_touching(wall):
    # do something

ducaale avatar Jun 17 '22 19:06 ducaale