Should I just told him that I liked him? or did I look too desperate that I liked him but didn’t say anything?

I hooked up with a guy I would talk to. We were good friends. He found someone else after we hooked up, which hurt a lot because I liked him. I wonder if I were to make it obvious, then maybe we would’ve gone out or if I ever looked desperate. I tried not to say much because I feared of making it obvious that I liked him because I’m too traumatized to show a guy that I like him.
Should I just told him that I liked him? or did I look too desperate that I liked him but didn’t say anything?
Post Opinion