Help?

My boyfriend broke up with me just over a month ago. He it still continuing to have sex with me, but it feels like thats all he wants. He wont come round when my parents are here, refuses to stay over. Idk what to think. Also when we broke up he said he will always be here for me cause he knows i have dealt with bad mental health and have been in horrible relationships. He's the one who said he wanted to keep in contact. I just dont know whats going on at all. The only reason im still letting him have sex with me is because i feel like if i dont he wont see me again.