play
play copied to clipboard
How to detect a sprite touching with other?
You can use the .is_touching() method defined on sprites
if car.is_touching(wall):
# do something