Please help! I'm having pain under knee cap when bent with pressure?

Anterior knee pain. That is what its known as in medical talk. Generally that implies patellofemoral pathology. Can be anything from chondromalacia)simple cartilage softening, to arthritis. Assuming that there is no instability. Suggest working on quad strengthening exercises. If not improving see ortho.