MV Reactive Hud

Hello everyone i am making an horror game for my university and for that project i wanted to add a reactive Hud
I am using SRD_HUDMaker for the hud but i want to speed it up the closer i am to the enemy (Either by speeding up the current animation or making various animations) Problem is i have no clue on how to do that.

List of ideas:
Multiple areas around the enemy to speed up the animation gradually (No clue how to do that)
Make it speed up the moment I enter a room with it and make it a non fluctuating speed

Would anyone know how to do the first idea cause it seems the most appropriate way to implement in a horror game
(In case im terrible at explaining please refer to Dead By Daylight Deaf heartbeat indicator but imagine it as hud)
if that heart would scale from 0.8 to 1 and continue when closer,
you need to track the player and event distance.

I do have a function for that, so if you find another snippet, you
can pull this off nicely (even if its a common event and picture ID
which is fully evented so you can scale the picture based on distance
and increase the speed in a loop.

I may be able to make a full function hud simple for that one, but I don't know
the game though.
if that heart would scale from 0.8 to 1 and continue when closer,
you need to track the player and event distance.

I do have a function for that, so if you find another snippet, you
can pull this off nicely (even if its a common event and picture ID
which is fully evented so you can scale the picture based on distance
and increase the speed in a loop.

I may be able to make a full function hud simple for that one, but I don't know
the game though.
How would i track distance from enemy to player i have a good pathfinding on the enemy but don't know how i would set that up any help?
This plugin can help you out here [nearestEvent] or
evented with little scriptcall found [here].

both should work what you need, if you want a perfect circle
radius check, it require a different approach, but close to the other 2 links.

Original thread: https://forums.rpgmakerweb.com/threads/reactive-hud.181361/