MZ Needing help with drawing sprites to map

Hello, I'm currently working on a new plugin for my friend's game, this time he requested a quest system in the style of most MMOs, I'm currently working on the map visuals, namely, I would like a small exclamation symbol to appear above the head of NPCs who have quests to give.

Something like this:
Quest Marker 1.png


However, while I was able to create the sprite and add it to the map scene, I'm not able to draw the sprite at it's intended world position, if I move, this happens:

Quest Marker 2.png


Basically, right now I'm only able to draw to the screen position but I'd like to be able to draw sprites to the world position if that makes sense.

This is more or less how my current plugin's sprite function is structured:

var _bitmap = ImageManager.loadSystem("Quests");
var _sprite = [];

for(let i = 0; i < $gameQuests._questMarkers.length; i++) {
_sprite.push(new Sprite(_bitmap));

SceneManager._scene.addChild(_sprite);
}

I then move them to their intended position from there. I tried both of these as well:

SceneManager._scene._spriteset.addChild(_sprite);
SceneManager._scene._spriteset._effectsContainer.addChild(_sprite);

Thinking that these might anchor the sprites to the world position in the same way animations and balloons do. But it didn't work.

Currently at a loss, I've tried combing over the sprite, scene and object classes relating to the map screen but I can't find anything that would let me draw my sprites on top of my quest giving NPCs heads.

Ah well, I'll take a break for now, let me know if you have suggestions.
Why not use existing plugin for that?
For example: https://galvs-scripts.com/2021/01/02/mz-action-indicators/
That plugin actually does seem pretty accurate to what I'm trying to do, I'll give it a look in a few moments.
Okay so I was able to fix the problem I was having, once again the issue was very easy to resolve and I'm a bit surprised as to why I was stumped on it for so long.

For some reason I assumed that the position of the sprites would need to be set only once. In reality as with most of the other sprites on the map they need to be frequently updated.

I added my own sprite's update function to the Spriteset_Map.prototype.update function and it now works perfectly, updating along with all the other map objects along with a nice bobbing effect using offsets.

Thank you fizzly for pointing me in the right direction, it was by studying that plugin that I found out an update function was needed.

Original thread: https://forums.rpgmakerweb.com/threads/needing-help-with-drawing-sprites-to-map.159101/