Thanks for your reply ser, but yes I know how to check for collision but when I use is_colliding() it is processed whenever the object is colliding but in my case I want to check collision only between 2 specific objects (which is the player and the mob) and ignore the rest (even if the player is colliding with the ground), and when they collide the value of the progress bar should decrease.
EDIT :
Ok, I did the progress bar part I added a line like this to my player script, just to check it, I added a func named it take_dmg(dmg) in the HUD script and whenever my player jumps the func is called
get_parent().get_node("CanvasLayer/HUD/").call("take_dmg", 5)
I only need to find a way to check collision or a thing of some sort between 2 specific objects.
I read the documentation on Area2D but honestly I need a live example on how to use it, I am not that good in coding in Godot.
Thanks.