Question: what does it mean when a guy hits you playfully on the head?
Answer: If he's just bopping you on the head, then it might be playful (though it's still a sign of flirtation). Before he kisses you, he might gently touch the back of your head or your neck to bring your face closer to his.