granpa's code (almost) does it (brackets were in the wrong place):
x=(square1.x+square2.x)/2
y=(square1.y+square2.y)/2
Hmm, this doesn't seem to create the sparks at all now, before they created by at the same position as the car, but now they don't seem to be there? I just realized, I'm using tilemaps, so will I need to calculate it for the tile the car collides with?