Bad Friend?

I have a friend that always seems like she has a constant need for attention. Whenever she’s not the center of attention she’s acts so rude, grumpy, and completely loses her filter. If I ever have something exciting that I want to tell her she just shoots me down and makes me feel annoying for wanting to tell her about it. Whenever I don’t give her my attention she used the excuse that she feels like I’m drifting away and doesn’t want to lose me as a friend. I can’t talk to her about this because she’ll just deny everything and assume that its because I’m jealous. At this point in my life I honestly don’t want to lose her as a friend so how do I deal with this while still being friends with her.