I'm not trying to be rude or insulting, but I pretty much understood nothing you asked.
So I will only point you to some things I think are weird.
This line (
numofclicks + 1;) does nothing. You want to write
numofclicks = numofclicks + 1; (or
++numofclicks;)
It doesn't seem that copHitPoints is ever updated. EnemyObject.eHp returns the new value but you don't use it to update copHitPoints.
window.draw(copHp); is called only when clickEnemy is true, it's no surprise that you can only catch a glimpse of it.
You want to "undraw" cop when clickEnemy is true, it means you want to draw it only when clickEnemy is false. Put it in the else of your
if (clickEnemy)Why do you use a while?
Instead of assigning false to hoverEnemy and clickEnemy, shouldn't you get this value from the function where you check if it hovers / clicks or not?